Class: Bones::RPC::Connection::Socket::TCP
- Inherits:
-
Celluloid::IO::TCPSocket
- Object
- Celluloid::IO::TCPSocket
- Bones::RPC::Connection::Socket::TCP
- Includes:
- Connectable
- Defined in:
- lib/bones/rpc/connection/socket/tcp.rb
Overview
This is a wrapper around a ssl socket.
Instance Attribute Summary
Attributes included from Connectable
Instance Method Summary collapse
-
#initialize(remote_host, remote_port, local_host = nil, local_port = nil) ⇒ TCP
constructor
Initialize the new TCPSocket.
Methods included from Connectable
#alive?, included, #read, #readpartial, #set_encoding, #write
Constructor Details
#initialize(remote_host, remote_port, local_host = nil, local_port = nil) ⇒ TCP
Initialize the new TCPSocket.
20 21 22 23 |
# File 'lib/bones/rpc/connection/socket/tcp.rb', line 20 def initialize(remote_host, remote_port, local_host = nil, local_port = nil) @host, @port = remote_host, remote_port handle_socket_errors { super } end |