Socket::Ifaddr represents a result of getifaddrs() function.

Instance Methods

Returns the address of ifaddr. nil is returned if address is not available in ifaddr.

Returns the broadcast address of ifaddr. nil is returned if the flags doesn’t have IFF_BROADCAST.

Returns the destination address of ifaddr. nil is returned if the flags doesn’t have IFF_POINTOPOINT.

Returns the flags of ifaddr.

Returns the interface index of ifaddr.

Returns a string to show contents of ifaddr.

Returns the interface name of ifaddr.

Returns the netmask address of ifaddr. nil is returned if netmask is not available in ifaddr.

Returns the vhid address of ifaddr. nil is returned if there is no vhid.