| Class | Mongo::Address::IPv6 |
| In: |
lib/mongo/address/ipv6.rb
|
| Parent: | Object |
Sets up resolution with IPv6 support if the address is an ip address.
@since 2.0.0
| MATCH | = | Regexp.new('::').freeze |
The regular expression to use to match an IPv6 ip
address.
@since 2.0.0 |
| host | [R] | @return [ String ] host The host. |
| host_name | [R] | @return [ String ] host_name The original host name. |
| port | [R] | @return [ Integer ] port The port. |
Initialize the IPv6 resolver.
@example Initialize the resolver.
IPv6.new("::1", 28011, 'localhost')
@param [ String ] host The host. @param [ Integer ] port The port.
@since 2.0.0
Get a socket for the provided address type, given the options.
ipv4.socket(5, :ssl => true)
@param [ Float ] socket_timeout The socket timeout. @param [ Hash ] ssl_options SSL options. @param [ Hash ] options The options.
@option options [ Float ] :connect_timeout Connect timeout.
@return [ Mongo::Socket::SSL, Mongo::Socket::TCP ] The socket.
@since 2.0.0