#include <networkInterface.hpp>
Network interface
- Author
- Vincent Lachenal
◆ NetworkInterface()
anch::device::NetworkInterface::NetworkInterface |
( |
const struct ifreq & | interface, |
|
|
bool | isLocalhost ) |
NetworkInterface constructor.
- Parameters
-
interface | data retrieved through ioctl POSIX call |
isLocalhost | interface is local loopback |
- Exceptions
-
◆ ~NetworkInterface()
virtual anch::device::NetworkInterface::~NetworkInterface |
( |
| ) |
|
|
virtual |
◆ getBroadcastAddress()
const std::string & anch::device::NetworkInterface::getBroadcastAddress |
( |
| ) |
const |
|
inline |
Interface broadcast address getter
- Returns
- The interface broadcast address
◆ getIpAddress()
const std::string & anch::device::NetworkInterface::getIpAddress |
( |
| ) |
const |
|
inline |
Interface IP address getter
- Returns
- The interface IP address
◆ getMacAddress()
const std::string & anch::device::NetworkInterface::getMacAddress |
( |
| ) |
const |
|
inline |
MAC address getter
- Returns
- The MAC address
◆ getMetric()
int anch::device::NetworkInterface::getMetric |
( |
| ) |
const |
|
inline |
Interface metric getter
- Returns
- The interface metric
◆ getMtu()
int anch::device::NetworkInterface::getMtu |
( |
| ) |
const |
|
inline |
Interface MTU getter
- Returns
- The interface MTU
◆ getName()
const std::string & anch::device::NetworkInterface::getName |
( |
| ) |
const |
|
inline |
Interface name getter
- Returns
- The interface name
◆ getNetmask()
const std::string & anch::device::NetworkInterface::getNetmask |
( |
| ) |
const |
|
inline |
Interface netmask getter
- Returns
- The interface netmask
◆ isLocalhost()
bool anch::device::NetworkInterface::isLocalhost |
( |
| ) |
const |
|
inline |
Is interface localhost getter
- Returns
true
if interface is localhost, false
otherwise
The documentation for this class was generated from the following file: