Sha256: 035204a30bb7f15f15436c3ef845064a65fa06c75ef49ae7f62ea25fddc55ba7
Contents?: true
Size: 515 Bytes
Versions: 14
Compression:
Stored size: 515 Bytes
Contents
module Moped module Sockets # 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
Version data entries
14 entries across 14 versions & 2 rubygems