Module | Moped::Connection::Socket::Connectable::ClassMethods |
In: |
lib/moped/connection/socket/connectable.rb
|
Connect to the tcp server.
@example Connect to the server.
TCPSocket.connect("127.0.0.1", 27017, 30)
@param [ String ] host The host to connect to. @param [ Integer ] post The server port. @param [ Integer ] timeout The connection timeout.
@return [ TCPSocket ] The socket.
@since 1.0.0