NetworkInterfaceInfo¶
struct nmeasim::io::NetworkInterfaceInfo ยท Library API
One IPv4 address of a network interface, with the broadcast address of its subnet.
#include <nmeasim/io/network_interfaces.hpp>
Declared in src/io/include/nmeasim/io/network_interfaces.hpp (line 23)
A default-constructed value, with a null address, stands for "no such interface" in the result of find_ipv4_interface.
Summary¶
Public data members
| Name | Description |
|---|---|
name |
System name, for example eth0, en0 or Ethernet. |
human_name |
Descriptive name where the platform provides one; otherwise the same as name. |
address |
The IPv4 address itself; null only in the "not found" value. |
broadcast |
Broadcast address of the subnet; null when the platform reports none. |
is_loopback |
True for the loopback interface. |
Public data members¶
name¶
QString name
System name, for example eth0, en0 or Ethernet.
Declared in src/io/include/nmeasim/io/network_interfaces.hpp:25
human_name¶
QString human_name
Descriptive name where the platform provides one; otherwise the same as name.
Declared in src/io/include/nmeasim/io/network_interfaces.hpp:27
address¶
QHostAddress address
The IPv4 address itself; null only in the "not found" value.
Declared in src/io/include/nmeasim/io/network_interfaces.hpp:29
broadcast¶
QHostAddress broadcast
Broadcast address of the subnet; null when the platform reports none.
Declared in src/io/include/nmeasim/io/network_interfaces.hpp:31
is_loopback¶
bool is_loopback{false}
True for the loopback interface.
Declared in src/io/include/nmeasim/io/network_interfaces.hpp:33