#include <networkInterface.hpp>
Network interface
- Author
- Vincent Lachenal
NetworkInterface constructor.
- Parameters
-
interface | data retrieved through ioctl POSIX call |
isLocalhost | interface is local loopback |
- Exceptions
-
NetworkInterface constructor.
- Parameters
-
interface | Data retrieved through ioctl POSIX call |
isLocalhost | Interface is local loopback |
- Exceptions
-
NetworkInterface::~NetworkInterface |
( |
| ) |
|
|
virtual |
const std::string& anch::device::NetworkInterface::getBroadcastAddress |
( |
| ) |
const |
|
inline |
Interface broadcast address getter
- Returns
- The interface broadcast address
const std::string& anch::device::NetworkInterface::getIpAddress |
( |
| ) |
const |
|
inline |
Interface IP address getter
- Returns
- The interface IP address
const std::string& anch::device::NetworkInterface::getMacAddress |
( |
| ) |
const |
|
inline |
MAC address getter
- Returns
- The MAC address
int anch::device::NetworkInterface::getMetric |
( |
| ) |
const |
|
inline |
Interface metric getter
- Returns
- The interface metric
int anch::device::NetworkInterface::getMtu |
( |
| ) |
const |
|
inline |
Interface MTU getter
- Returns
- The interface MTU
const std::string& anch::device::NetworkInterface::getName |
( |
| ) |
const |
|
inline |
Interface name getter
- Returns
- The interface name
const std::string& anch::device::NetworkInterface::getNetmask |
( |
| ) |
const |
|
inline |
Interface netmask getter
- Returns
- The interface netmask
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 files: