lib/packet/packet_core.rb
# method removes the connection and closes the socket
method removes the connection and closes the socket
method removes the connection and closes the socket
def remove_connection(t_sock)
        read_ios.delete(t_sock)
        write_ios.delete(t_sock)
        begin
          unless t_sock.closed?
            connections.delete(t_sock.fileno)
            t_sock.close
          end
        rescue
          puts "#{$!.message}"
        end
      end
def remove_connection ( t_sock ) read_ios . delete ( t_sock ) write_ios . delete ( t_sock ) begin unless t_sock . closed? connections . delete ( t_sock . fileno ) t_sock . close end rescue puts "#{$!.message}" end end
method removes the connection and closes the socket
method removes the connection and closes the socket
t_sock
<not_specific>