27 #ifndef NIDAS_UTIL_INET4NETWORKINTERFACE_H
28 #define NIDAS_UTIL_INET4NETWORKINTERFACE_H
33 namespace nidas {
namespace util {
Inet4Address getBroadcastAddress() const
The IPV4 broadcast address of the interface.
Definition: Inet4NetworkInterface.h:62
const std::string & getName() const
The name of the interface: like "lo", "eth0", etc.
Definition: Inet4NetworkInterface.h:47
short getFlags() const
The interface flags.
Definition: Inet4NetworkInterface.h:79
Inet4Address getNetMask() const
The IPV4 network mask of the interface.
Definition: Inet4NetworkInterface.h:67
static Inet4NetworkInterface getInterface(const Inet4Address &addr)
Return an Inet4NetworkInterface corresponding to the given address.
Definition: Inet4NetworkInterface.cc:37
Inet4Address getAddress() const
The IPV4 address of the interface.
Definition: Inet4NetworkInterface.h:57
Inet4Address _addr
Definition: Inet4NetworkInterface.h:96
int getIndex() const
The index of the interface.
Definition: Inet4NetworkInterface.h:52
std::string _name
Definition: Inet4NetworkInterface.h:94
int getMTU() const
The mtu of the interface.
Definition: Inet4NetworkInterface.h:72
Inet4NetworkInterface()
Definition: Inet4NetworkInterface.h:38
Definition: Inet4NetworkInterface.h:35
int _mtu
Definition: Inet4NetworkInterface.h:99
Definition: IOException.h:37
Inet4Address _baddr
Definition: Inet4NetworkInterface.h:97
Inet4Address _netmask
Definition: Inet4NetworkInterface.h:98
short _flags
Definition: Inet4NetworkInterface.h:100
Inet4NetworkInterface(const std::string &name, Inet4Address addr, Inet4Address brdcastAddr, Inet4Address netmask, int mtu, int index, short flags)
Definition: Inet4NetworkInterface.h:41
Support for IP version 4 host address.
Definition: Inet4Address.h:46
int _index
Definition: Inet4NetworkInterface.h:95