1#ifndef NET_NetworkInterface_h__
2#define NET_NetworkInterface_h__
51 std::string
name()
const {
return interface; }
139 std::string interface;
NetworkInterface(std::string_view interface)
void setNetmask(std::string_view address)
Set the IPv4 netmask of the given network interface.
int getMTU() const
Return the MTU (Maximum Transmission Unit) of the given network interface in bytes.
void setBroadcastAddress(std::string_view address)
Set the IPv4 broadcast address of the given network interface.
void setDestinationAddress(std::string_view address)
Set the IPv4 destination address of the given network interface.
std::string getInterfaceAddress() const
Return the IPv4 address of the given network interface.
std::string getDestinationAddress() const
Return the IPv4 destination address of the given network interface.
std::string getHardwareAddress() const
Return the MAC address of the given network interfaces.
void setMTU(int mtu)
Set the MTU (Maximum Transmission Unit) of the given network interface in bytes.
void setInterfaceAddress(std::string_view address)
Set the IPv4 address of the given network interface.
std::string getNetmask() const
Return the IPv4 netmask of the given network interface.
std::string getBroadcastAddress() const
Return the IPv4 broadcast address of the given network interface.
AddressFamily
used by internet socket types
std::vector< NetworkAddressInfo > getNetworkAddresses()
Return IPv4/IPv6 address entries for the local network interfaces.
std::vector< NetworkInterface > getNetworkInterfaces()
Returns list of all network interfaces regardless of their state.