| Class | Mongo::Address::Unix |
| In: |
lib/mongo/address/unix.rb
|
| Parent: | Object |
| MATCH | = | Regexp.new('\.sock').freeze |
The regular expression to use to match a socket path.
@since 2.0.0 |
| host | [R] | @return [ String ] host The host. |
| port | [R] | @return [ nil ] port Will always be nil. |
Initialize the socket resolver.
@example Initialize the resolver.
Unix.new("/path/to/socket.sock", "/path/to/socket.sock")
@param [ String ] host The host.
@since 2.0.0
Get a socket for the provided address type, given the options.
address.socket(5)
@param [ Float ] socket_timeout The socket timeout. @param [ Hash ] ssl_options SSL options - ignored. @param [ Hash ] options The options.
@option options [ Float ] :connect_timeout Connect timeout.
@return [ Mongo::Socket::Unix ] The socket.
@since 2.0.0