|
Infuse-IoT SDK API 0.0.1
A Scalable Open Source RTOS
|
Infuse DNS helpers. More...
#include <stdint.h>#include <zephyr/net/net_ip.h>Go to the source code of this file.
Data Structures | |
| struct | infuse_async_dns_context |
| Async query context for infuse_async_dns. More... | |
Macros | |
| #define | INFUSE_ASYNC_DNS_RESULT 0 |
| #define | INFUSE_ASYNC_DNS_COMPLETE 1 |
Typedefs | |
| typedef void(* | infuse_async_dns_cb) (int result, struct sockaddr *addr, socklen_t addrlen, struct infuse_async_dns_context *cb_ctx) |
| Callback when DNS results are received. | |
Functions | |
| int | infuse_sync_dns (const char *host, uint16_t port, int family, int socktype, struct sockaddr *addr, socklen_t *addrlen) |
| Perform a DNS query for a host. | |
| int | infuse_async_dns (const char *host, int family, struct infuse_async_dns_context *context, int32_t timeout_ms) |
| Perform an asynchronous DNS query for a host. | |
Infuse DNS helpers.
SPDX-License-Identifier: FSL-1.1-ALv2