#include <network_interface_config.hpp>
◆ empty()
| bool rav::NetworkInterfaceConfig::empty |
( |
| ) |
const |
|
inlinenodiscard |
Checks if the configuration is empty.
- Returns
- True if there are no interfaces configured, false otherwise.
Definition at line 107 of file network_interface_config.hpp.
◆ get_array_of_interface_addresses()
template<size_t N>
| std::array< ip_address_v4, N > rav::NetworkInterfaceConfig::get_array_of_interface_addresses |
( |
| ) |
const |
|
inline |
◆ get_interface_for_rank()
Gets a network interface by its rank.
- Parameters
-
| rank | The rank (index) of the network interface. |
- Returns
- A pointer to the network interface identifier if found, or nullptr if not found.
Definition at line 66 of file network_interface_config.hpp.
◆ get_interface_ipv4_address()
| ip_address_v4 rav::NetworkInterfaceConfig::get_interface_ipv4_address |
( |
const size_t | rank | ) |
const |
|
inlinenodiscard |
- Returns
- The first IPv4 address of one of the network interfaces. The address will be unspecified if the interface is not found or if it has no IPv4 address.
Definition at line 77 of file network_interface_config.hpp.
◆ get_interface_ipv4_addresses()
| std::vector< ip_address_v4 > rav::NetworkInterfaceConfig::get_interface_ipv4_addresses |
( |
| ) |
const |
|
inlinenodiscard |
- Returns
- A vector of all network interfaces and their first IPv4 address. The address will be unspecified if the interface has no IPv4 address or is not set.
Definition at line 92 of file network_interface_config.hpp.
◆ set_interface()
Sets a network interface by its rank.
- Parameters
-
| rank | The rank (index) of the network interface. |
| identifier | The identifier of the network interface. Pas an empty identifier to clear the interface. |
Definition at line 54 of file network_interface_config.hpp.
◆ to_string()
| std::string rav::NetworkInterfaceConfig::to_string |
( |
| ) |
const |
|
inlinenodiscard |
◆ operator!=
◆ operator==
◆ interfaces
The documentation for this class was generated from the following file: