#include <Inet4NetworkInterface.h>
◆ Inet4NetworkInterface() [1/2]
nidas::util::Inet4NetworkInterface::Inet4NetworkInterface |
( |
| ) |
|
|
inline |
◆ Inet4NetworkInterface() [2/2]
nidas::util::Inet4NetworkInterface::Inet4NetworkInterface |
( |
const std::string & | name, |
|
|
Inet4Address | addr, |
|
|
Inet4Address | brdcastAddr, |
|
|
Inet4Address | netmask, |
|
|
int | mtu, |
|
|
int | index, |
|
|
short | flags ) |
|
inline |
◆ getAddress()
Inet4Address nidas::util::Inet4NetworkInterface::getAddress |
( |
| ) |
const |
|
inline |
The IPV4 address of the interface.
References _addr.
◆ getBroadcastAddress()
Inet4Address nidas::util::Inet4NetworkInterface::getBroadcastAddress |
( |
| ) |
const |
|
inline |
The IPV4 broadcast address of the interface.
References _baddr.
◆ getFlags()
short nidas::util::Inet4NetworkInterface::getFlags |
( |
| ) |
const |
|
inline |
The interface flags.
Use macros like IFF_UP, IFF_BROADCAST, IFF_POINTOPOINT, IFF_MULTICAST, IFF_LOOPBACK from net/if.h to check for capabilities. See man netdevice.
References _flags.
Referenced by nidas::util::listMulticastInterfaces().
◆ getIndex()
int nidas::util::Inet4NetworkInterface::getIndex |
( |
| ) |
const |
|
inline |
The index of the interface.
References _index.
◆ getInterface()
◆ getMTU()
int nidas::util::Inet4NetworkInterface::getMTU |
( |
| ) |
const |
|
inline |
The mtu of the interface.
References _mtu.
◆ getName()
const std::string & nidas::util::Inet4NetworkInterface::getName |
( |
| ) |
const |
|
inline |
The name of the interface: like "lo", "eth0", etc.
References _name.
◆ getNetMask()
Inet4Address nidas::util::Inet4NetworkInterface::getNetMask |
( |
| ) |
const |
|
inline |
The IPV4 network mask of the interface.
References _netmask.
◆ _addr
◆ _baddr
◆ _flags
short nidas::util::Inet4NetworkInterface::_flags |
|
private |
◆ _index
int nidas::util::Inet4NetworkInterface::_index |
|
private |
◆ _mtu
int nidas::util::Inet4NetworkInterface::_mtu |
|
private |
◆ _name
std::string nidas::util::Inet4NetworkInterface::_name |
|
private |
◆ _netmask
The documentation for this class was generated from the following files: