Skip to content
instance method

Addrinfo#afamily

() -> ::Integer
addrinfo.afamily => integer

returns the address family as an integer.

Example
Addrinfo.tcp("localhost", 80).afamily == Socket::AF_INET #=> true
See also .unix #bind .udp #canonname also in 4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0