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

Version Path
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/bundler/gems/moped-cf817ca58a85/lib/moped/connection/socket/tcp.rb
moped-2.0.7 lib/moped/connection/socket/tcp.rb
moped-2.0.6 lib/moped/connection/socket/tcp.rb
moped-2.0.5 lib/moped/connection/socket/tcp.rb
moped-2.0.4 lib/moped/connection/socket/tcp.rb
moped-2.0.3 lib/moped/connection/socket/tcp.rb
moped-2.0.2 lib/moped/connection/socket/tcp.rb
moped-2.0.1 lib/moped/connection/socket/tcp.rb
moped-2.0.0 lib/moped/connection/socket/tcp.rb
moped-2.0.0.rc2 lib/moped/connection/socket/tcp.rb
moped-2.0.0.rc1 lib/moped/connection/socket/tcp.rb
moped-2.0.0.beta6 lib/moped/connection/socket/tcp.rb
moped-2.0.0.beta5 lib/moped/connection/socket/tcp.rb
moped-2.0.0.beta4 lib/moped/connection/socket/tcp.rb
moped-2.0.0.beta3 lib/moped/connection/socket/tcp.rb
moped-2.0.0.beta2 lib/moped/connection/socket/tcp.rb
moped-2.0.0.beta lib/moped/connection/socket/tcp.rb