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

#addr ⇒ addrinfo

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

#broadaddr ⇒ addrinfo

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

#dstaddr ⇒ addrinfo

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

#flags ⇒ Integer

Returns the flags of ifaddr.

#ifindex ⇒ Integer

Returns the interface index of ifaddr.

#inspect ⇒ String

Returns a string to show contents of ifaddr.

#name ⇒ String

Returns the interface name of ifaddr.

#netmask ⇒ addrinfo

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