evdns_getaddrinfo

Make a non-blocking getaddrinfo request using the dns_base in 'dns_base'.

If we can answer the request immediately (with an error or not!), then we invoke cb immediately and return NULL. Otherwise we return an evdns_getaddrinfo_request and invoke cb later.

When the callback is invoked, we pass as its first argument the error code that getaddrinfo would return (or 0 for no error). As its second argument, we pass the evutil_addrinfo structures we found (or NULL on error). We pass 'arg' as the third argument.

Limitations:

- The AI_V4MAPPED and AI_ALL flags are not currently implemented. - For ai_socktype, we only handle SOCKTYPE_STREAM, SOCKTYPE_UDP, and 0. - For ai_protocol, we only handle IPPROTO_TCP, IPPROTO_UDP, and 0.

extern (C) nothrow
evdns_getaddrinfo
(,
const(char)* nodename
,
const(char)* servname
,
const(evutil_addrinfo)* hints_in_
,,
void* arg
)

Meta