Method: FCS::Client#connect

Defined in:
lib/fcs/client.rb

#connectObject



23
24
25
26
27
28
29
# File 'lib/fcs/client.rb', line 23

def connect
  unless @socket
    @socket = TCPSocket.open(@remote_host, @remote_port, @local_host, @local_port)
    Response.new(@socket).parse_response
  end
  @socket
end