123456789_123456789_123456789_123456789_123456789_

Class: Socket::Ifaddr

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, ::Data
Instance Chain:
self, ::Data
Inherits: Data
Defined in: ext/socket/ifaddr.c

Overview

Ifaddr represents a result of getifaddrs() function.

Instance Method Summary

Instance Method Details

#addraddrinfo

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

#broadaddraddrinfo

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

#dstaddraddrinfo

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

#flagsInteger

Returns the flags of ifaddr.

#ifindexInteger

Returns the interface index of ifaddr.

#inspectString

Returns a string to show contents of ifaddr.

#nameString

Returns the interface name of ifaddr.

#netmaskaddrinfo

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