|
idfxx 1.0.0
Modern C++23 components for ESP-IDF
|
Resolve a host name and service to one or more endpoints. More...
Namespaces | |
| namespace | idfxx |
| namespace | idfxx::net |
Resolve a host name and service to one or more endpoints.
The common case — resolve a host and use the first usable address — is served by resolve_one / try_resolve_one. To examine several candidate addresses (for example, to try each in turn until one connects) use resolve_each / try_resolve_each, which visit results without allocating. resolve / try_resolve collect every result into a std::vector for callers that want the full set in hand.
CONFIG_LWIP_USE_ESP_GETADDRINFO to receive multiple records (subject to DNS_MAX_HOST_IP).