This is a wrapper around a tcp socket.
Initialize the new TCPSocket.
@example Initialize the socket.
TCPSocket.new("127.0.0.1", 27017)
@param [ String ] host The host. @param [ Integer ] port The port.
@since 1.2.0
# File lib/moped/sockets/tcp.rb, line 17 def initialize(host, port) @host, @port = host, port handle_socket_errors { super } end
Generated with the Darkfish Rdoc Generator 2.