mirror of
https://github.com/cesanta/mongoose.git
synced 2024-12-13 07:59:00 +08:00
3eb4eb8074
PUBLISHED_FROM=331821dcd1f7dc8a94581cd8a9b51aa00a89fddc
850 B
850 B
title | decl_name | symbol_kind | signature |
---|---|---|---|
mg_resolve_async_opt() | mg_resolve_async_opt | func | int mg_resolve_async_opt(struct mg_mgr *mgr, const char *name, int query, mg_resolve_callback_t cb, void *data, struct mg_resolve_async_opts opts); |
Resolved a DNS name asynchronously.
Upon successful resolution, the user callback will be invoked
with the full DNS response message and a pointer to the user's
context data
.
In case of timeout while performing the resolution the callback
will receive a NULL msg
.
The DNS answers can be extracted with mg_next_record
and
mg_dns_parse_record_data
: