class Bones::RPC::Celluloid::Connection::Socket::TCP
This is a wrapper around a tcp socket.
Public Class Methods
new(remote_host, remote_port, local_host = nil, local_port = nil)
click to toggle source
Initialize the new TCPSocket.
@example Initialize the socket.
TCP.new("127.0.0.1", 27017)
@param [ String ] remote_host The host. @param [ Integer ] remote_port The port.
@since 0.0.1
Calls superclass method
# File lib/bones/rpc/celluloid/connection/socket/tcp.rb, line 21 def initialize(remote_host, remote_port, local_host = nil, local_port = nil) @host, @port = remote_host, remote_port handle_socket_errors { super } end