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.
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.
Definition dns.h:60
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.
Async query context for infuse_async_dns.
Definition dns.h:64