Class: Dino::TxRx::TCP
Instance Method Summary collapse
-
#initialize(host, port = 3466) ⇒ TCP
constructor
A new instance of TCP.
- #io ⇒ Object
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 |