Method: RJR::Nodes::TCPConnection#initialize
- Defined in:
- lib/rjr/nodes/tcp.rb
#initialize(args = {}) ⇒ TCPConnection
TCPConnection intializer
Specify the TCP Node establishing the connection and optionaly remote host/port which this connection is connected to
28 29 30 31 32 33 34 35 |
# File 'lib/rjr/nodes/tcp.rb', line 28 def initialize(args = {}) @rjr_node = args[:rjr_node] @host = args[:host] @port = args[:port] @send_lock = Mutex.new @data = "" end |