Class: Dino::TxRx::TCP

Inherits:
Base
  • Object
show all
Defined in:
lib/dino/tx_rx/tcp.rb

Instance Method Summary collapse

Methods inherited from Base

#close_read, #flush_read, #gets, #handshake, #read, #write

Constructor Details

#initialize(host, port = 3466) ⇒ TCP

Returns a new instance of TCP.



6
7
8
# File 'lib/dino/tx_rx/tcp.rb', line 6

def initialize(host, port=3466)
  @host, @port = host, port
end

Instance Method Details

#io ⇒ Object



10
11
12
# File 'lib/dino/tx_rx/tcp.rb', line 10

def io
  @io ||= connect
end