Class: MessagePack::RPC::TCPTransport
- Inherits:
-
Object
- Object
- MessagePack::RPC::TCPTransport
- Defined in:
- lib/msgpack/rpc/transport/tcp.rb
Defined Under Namespace
Classes: BasicSocket
Instance Attribute Summary collapse
-
#reconnect_limit ⇒ Object
Returns the value of attribute reconnect_limit.
Instance Method Summary collapse
-
#build_transport(session, address) ⇒ Object
Transport interface.
-
#initialize ⇒ TCPTransport
constructor
A new instance of TCPTransport.
Constructor Details
#initialize ⇒ TCPTransport
Returns a new instance of TCPTransport.
23 24 25 |
# File 'lib/msgpack/rpc/transport/tcp.rb', line 23 def initialize @reconnect_limit = 5 # FIXME default reconnect_limit end |
Instance Attribute Details
#reconnect_limit ⇒ Object
Returns the value of attribute reconnect_limit.
27 28 29 |
# File 'lib/msgpack/rpc/transport/tcp.rb', line 27 def reconnect_limit @reconnect_limit end |
Instance Method Details
#build_transport(session, address) ⇒ Object
Transport interface
30 31 32 |
# File 'lib/msgpack/rpc/transport/tcp.rb', line 30 def build_transport(session, address) TCPClientTransport.new(session, address, @reconnect_limit) end |