class Moped::Sockets::TCP

This is a wrapper around a tcp socket.

Public Class Methods

new(host, port) click to toggle source

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

Calls superclass method
# File lib/moped/sockets/tcp.rb, line 17
def initialize(host, port)
  @host, @port = host, port
  handle_socket_errors { super }
end