20 #ifndef _ANCH_DEVICE_NETWORK_INTERFACE_H_ 21 #define _ANCH_DEVICE_NETWORK_INTERFACE_H_ 27 #include "device/deviceException.hpp" 45 std::string _ipAddress;
48 std::string _macAddress;
51 std::string _broadcastAddress;
94 inline const std::string&
getName()
const {
122 return _broadcastAddress;
167 #endif // _ANCH_DEVICE_NETWORK_INTERFACE_H_ Definition: networkInterface.hpp:38
const std::string & getMacAddress() const
Definition: networkInterface.hpp:112
const std::string & getBroadcastAddress() const
Definition: networkInterface.hpp:121
int getMetric() const
Definition: networkInterface.hpp:148
const std::string & getNetmask() const
Definition: networkInterface.hpp:130
Definition: deviceException.hpp:34
AnCH framework base namespace.
Definition: base64.hpp:28
const std::string & getName() const
Definition: networkInterface.hpp:94
bool isLocalhost() const
Definition: networkInterface.hpp:157
virtual ~NetworkInterface()
Definition: networkInterface.cpp:122
int getMtu() const
Definition: networkInterface.hpp:139
const std::string & getIpAddress() const
Definition: networkInterface.hpp:103
NetworkInterface(const struct ifreq &interface, bool isLocalhost)
Definition: networkInterface.cpp:43