Method: OSC::TCPClient#initialize

Defined in:
lib/qcmd/core_ext/osc/tcp_client.rb

#initialize(host, port, handler = nil) ⇒ TCPClient

Returns a new instance of TCPClient.



19
20
21
22
23
24
# File 'lib/qcmd/core_ext/osc/tcp_client.rb', line 19

def initialize host, port, handler=nil
  @host = host
  @port = port
  @handler = handler
  @so   = TCPSocket.new host, port
end