Sha256: 26be4c9c9a272906496e1e25ae92c1ee1ac7b34f5194a85f8cfe254cc38f2854
Contents?: true
Size: 577 Bytes
Versions: 17
Compression:
Stored size: 577 Bytes
Contents
module Moped class Connection module Socket # This is a wrapper around a tcp socket. class TCP < ::TCPSocket include Connectable # 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 def initialize(host, port) @host, @port = host, port handle_socket_errors { super } end end end end end
Version data entries
17 entries across 17 versions & 2 rubygems