|
idfxx 1.0.0
Modern C++23 components for ESP-IDF
|
Network interface type definitions and API. More...
#include <idfxx/chrono>#include <idfxx/error>#include <idfxx/event>#include <idfxx/flags>#include <idfxx/mac>#include <idfxx/net>#include <array>#include <cstdint>#include <optional>#include <string>#include <string_view>#include <utility>#include <vector>#include "sdkconfig.h"Go to the source code of this file.
Classes | |
| class | idfxx::netif::error_category |
| Error category for network interface errors. More... | |
| struct | idfxx::netif::ip4_event_data |
| Information about an acquired IPv4 address. More... | |
| struct | idfxx::netif::ip6_event_data |
| Information about an acquired IPv6 address. More... | |
| struct | idfxx::netif::ap_sta_ip4_assigned_event_data |
| Information about an IP assigned to a station connected to an AP. More... | |
| struct | idfxx::netif::dns_info |
| DNS server information. More... | |
| class | idfxx::netif::interface |
| Network interface handle. More... | |
Namespaces | |
| namespace | idfxx |
| namespace | idfxx::netif |
| namespace | idfxx::netif::sntp |
Typedefs | |
| typedef struct esp_netif_obj | esp_netif_t |
Functions | |
| const netif::error_category & | idfxx::netif_category () noexcept |
| Returns a reference to the netif error category singleton. | |
| std::unexpected< std::error_code > | idfxx::netif_error (esp_err_t e) |
| Creates an unexpected error from an ESP-IDF error code, mapping to netif error codes where possible. | |
| std::error_code | idfxx::netif::make_error_code (errc e) noexcept |
| Creates an error code from an idfxx::netif::errc value. | |
| void | idfxx::netif::init () |
| Initializes the TCP/IP stack and network interface subsystem. | |
| void | idfxx::netif::deinit () |
| Deinitializes the network interface subsystem. | |
| result< void > | idfxx::netif::try_init () |
| Initializes the TCP/IP stack and network interface subsystem. | |
| result< void > | idfxx::netif::try_deinit () |
| Deinitializes the network interface subsystem. | |
| size_t | idfxx::netif::get_nr_of_ifs () |
| Returns the number of registered network interfaces. | |
| std::optional< interface > | idfxx::netif::get_default () |
| Returns a non-owning handle to the default network interface. | |
| void | idfxx::netif::set_default (interface &iface) |
| Sets the given interface as the default network interface. | |
| std::optional< interface > | idfxx::netif::find_by_key (const char *key) |
| Finds a network interface by its key string. | |
| std::string | idfxx::to_string (netif::dns_type t) |
| Returns the string representation of a DNS server type. | |
Variables | |
| const event_base< ip_event_id > | idfxx::netif::ip_events |
| IP event base. | |
| constexpr idfxx::event< ip_event_id, ip4_event_data > | idfxx::netif::sta_got_ip4 {ip_event_id::sta_got_ip4} |
| Station received IPv4 address event with IP details. | |
| constexpr idfxx::event< ip_event_id > | idfxx::netif::sta_lost_ip4 {ip_event_id::sta_lost_ip4} |
| Station lost IPv4 address event. | |
| constexpr idfxx::event< ip_event_id, ap_sta_ip4_assigned_event_data > | idfxx::netif::ap_sta_ip4_assigned |
| Soft-AP assigned IP to a connected station event. | |
| constexpr idfxx::event< ip_event_id, ip6_event_data > | idfxx::netif::got_ip6 {ip_event_id::got_ip6} |
| Received IPv6 address event. | |
| constexpr idfxx::event< ip_event_id, ip4_event_data > | idfxx::netif::eth_got_ip4 {ip_event_id::eth_got_ip4} |
| Ethernet received IPv4 address event with IP details. | |
| constexpr idfxx::event< ip_event_id > | idfxx::netif::eth_lost_ip4 {ip_event_id::eth_lost_ip4} |
| Ethernet lost IPv4 address event. | |
| constexpr idfxx::event< ip_event_id, ip4_event_data > | idfxx::netif::ppp_got_ip4 {ip_event_id::ppp_got_ip4} |
| PPP interface received IPv4 address event with IP details. | |
| constexpr idfxx::event< ip_event_id > | idfxx::netif::ppp_lost_ip4 {ip_event_id::ppp_lost_ip4} |
| PPP interface lost IPv4 address event. | |
Network interface type definitions and API.
Definition in file netif.hpp.