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

Version Path
moped-1.5.3 lib/moped/sockets/tcp.rb
moped-1.5.2 lib/moped/sockets/tcp.rb
moped-1.5.1 lib/moped/sockets/tcp.rb
moped-1.5.0 lib/moped/sockets/tcp.rb
moped-1.4.5 lib/moped/sockets/tcp.rb
moped-1.4.4 lib/moped/sockets/tcp.rb
moped-1.4.3 lib/moped/sockets/tcp.rb
moped-1.4.2 lib/moped/sockets/tcp.rb
moped-1.4.1 lib/moped/sockets/tcp.rb
moped-1.4.0 lib/moped/sockets/tcp.rb
sunrise-cms-0.5.0.rc1 vendor/bundle/ruby/1.9.1/gems/moped-1.3.2/lib/moped/sockets/tcp.rb
moped-1.3.2 lib/moped/sockets/tcp.rb
moped-1.3.1 lib/moped/sockets/tcp.rb
moped-1.3.0 lib/moped/sockets/tcp.rb