Class: Denko::Connection::TCP

Inherits:
Base
  • Object
show all
Defined in:
lib/denko/connection/tcp.rb

Constant Summary

Constants included from Handshake

Handshake::HANDSHAKE_TIMEOUT, Handshake::HANDSHAKE_TRIES

Instance Method Summary collapse

Methods inherited from Base

inherited, #stop

Methods included from Handshake

#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_sObject



13
14
15
# File 'lib/denko/connection/tcp.rb', line 13

def to_s
  "#{@host}:#{@port}"
end