Class: Denko::Connection::TCP
Constant Summary
Constants included from Handshake
Handshake::HANDSHAKE_TIMEOUT, Handshake::HANDSHAKE_TRIES
Instance Method Summary collapse
-
#initialize(host = "127.0.0.1", port = 3466) ⇒ TCP
constructor
A new instance of TCP.
- #to_s ⇒ Object
Methods inherited from Base
Methods included from Handshake
Constructor Details
#initialize(host = "127.0.0.1", port = 3466) ⇒ TCP
Returns a new instance of TCP.
8 9 10 11 |
# File 'lib/denko/connection/tcp.rb', line 8 def initialize(host="127.0.0.1", port=3466) @host = host @port = port end |
Instance Method Details
#to_s ⇒ Object
13 14 15 |
# File 'lib/denko/connection/tcp.rb', line 13 def to_s "#{@host}:#{@port}" end |