class Bones::RPC::Synchronous::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/synchronous/connection/socket/tcp.rb, line 21
def initialize(remote_host, remote_port, local_host = nil, local_port = nil)
  @host, @port = remote_host.to_s, remote_port
  handle_socket_errors { super(@host, port, local_host, local_port) }
end