27#include <mstdlib/mstdlib.h>
28#include <mstdlib/io/m_event.h>
183M_API M_bool
M_dns_ntop(
int af,
const void *src,
char *addr,
size_t addr_size);
M_bool M_dns_set_query_timeout(M_dns_t *dns, M_uint64 timeout_ms)
M_bool M_dns_destroy(M_dns_t *dns)
void(* M_dns_ghbn_callback_t)(const M_list_str_t *ipaddrs, void *cb_data, M_dns_result_t result)
Definition: m_dns.h:137
void M_dns_happyeyeballs_update(M_dns_t *dns, const char *ipaddr, M_dns_happyeb_status_t status)
void M_dns_gethostbyname(M_dns_t *dns, M_event_t *event, const char *hostname, M_io_net_type_t type, M_dns_ghbn_callback_t callback, void *cb_data)
M_dns_happyeb_status
Definition: m_dns.h:103
struct M_dns M_dns_t
Definition: m_dns.h:43
enum M_dns_happyeb_status M_dns_happyeb_status_t
Definition: m_dns.h:110
M_bool M_dns_pton(int af, const char *src, void *dst)
M_dns_t * M_dns_create(M_event_t *event)
enum M_dns_result M_dns_result_t
Definition: m_dns.h:123
M_bool M_dns_ntop(int af, const void *src, char *addr, size_t addr_size)
M_dns_result
Definition: m_dns.h:114
M_bool M_dns_set_cache_timeout(M_dns_t *dns, M_uint64 max_timeout_s)
@ M_HAPPYEB_STATUS_SLOW
Definition: m_dns.h:106
@ M_HAPPYEB_STATUS_UNKNOWN
Definition: m_dns.h:105
@ M_HAPPYEB_STATUS_GOOD
Definition: m_dns.h:104
@ M_HAPPYEB_STATUS_BAD
Definition: m_dns.h:108
@ M_DNS_RESULT_SUCCESS_CACHE
Definition: m_dns.h:116
@ M_DNS_RESULT_SERVFAIL
Definition: m_dns.h:118
@ M_DNS_RESULT_INVALID
Definition: m_dns.h:121
@ M_DNS_RESULT_SUCCESS_CACHE_EVICT
Definition: m_dns.h:117
@ M_DNS_RESULT_NOTFOUND
Definition: m_dns.h:119
@ M_DNS_RESULT_TIMEOUT
Definition: m_dns.h:120
@ M_DNS_RESULT_SUCCESS
Definition: m_dns.h:115
struct M_event M_event_t
Definition: m_event.h:210
enum M_io_net_type M_io_net_type_t
Definition: m_io_net.h:340
struct M_list_str M_list_str_t
Definition: m_list_str.h:80