2016-09-01 22:19:01 +08:00
|
|
|
---
|
|
|
|
title: "struct mg_resolve_async_opts"
|
|
|
|
decl_name: "struct mg_resolve_async_opts"
|
|
|
|
symbol_kind: "struct"
|
|
|
|
signature: |
|
|
|
|
struct mg_resolve_async_opts {
|
2017-03-20 17:43:05 +08:00
|
|
|
const char *nameserver;
|
2016-09-01 22:19:01 +08:00
|
|
|
int max_retries; /* defaults to 2 if zero */
|
|
|
|
int timeout; /* in seconds; defaults to 5 if zero */
|
|
|
|
int accept_literal; /* pseudo-resolve literal ipv4 and ipv6 addrs */
|
|
|
|
int only_literal; /* only resolves literal addrs; sync cb invocation */
|
|
|
|
struct mg_connection **dns_conn; /* return DNS connection */
|
|
|
|
};
|
|
|
|
---
|
|
|
|
|
|
|
|
Options for `mg_resolve_async_opt`.
|
|
|
|
|