|
oveRTOS C++ API
C++20 RAII wrappers for the oveRTOS C API
|
Builder for ove_netif_config_t.
More...
#include <net.hpp>
Public Member Functions | |
| NetIfConfig () | |
| Default-constructs a zeroed configuration. | |
| NetIfConfig & | static_ip (const Address &ip, const Address &mask, const Address &gw) |
| Configures a static IP address. | |
| NetIfConfig & | dhcp () |
| Enables DHCP. | |
| NetIfConfig & | dns (const Address &d) |
| Sets the DNS server address. | |
Public Attributes | |
| ove_netif_config_t | raw |
| The underlying C configuration struct. | |
Builder for ove_netif_config_t.
Wraps the C configuration struct and provides a fluent builder API. The raw member can be passed directly to the C API if needed.
|
inline |
Configures a static IP address.
| [in] | ip | Static IP address. |
| [in] | mask | Subnet mask. |
| [in] | gw | Default gateway. |
|
inline |
Enables DHCP.
|
inline |
Sets the DNS server address.
| [in] | d | DNS server address. |