Class Mongo::Socket::Unix
In: lib/mongo/socket/unix.rb
Parent: Socket

Wrapper for Unix sockets.

@since 2.0.0

Methods

new  

Attributes

path  [R]  @return [ String ] path The path to connect to.
timeout  [R]  @return [ Float ] timeout The socket timeout.

Public Class methods

Initializes a new Unix socket.

@example Create the Unix socket.

  Unix.new('/path/to.sock', 5)

@param [ String ] path The path. @param [ Float ] timeout The socket timeout value. @param [ Hash ] options The options.

@option options [ Float ] :connect_timeout Connect timeout (unused).

@since 2.0.0

[Validate]