AsyncDNS

Resolves internet addresses and returns the results in a specified callback.

Constructors

this
this(EventLoop evl)

Members

Functions

addr
shared(NetworkAddress*) addr()
Undocumented in source. Be warned that the author may not have intended to support it.
callback
void callback()
Undocumented in source. Be warned that the author may not have intended to support it.
handler
shared(typeof(this)) handler(void delegate(NetworkAddress) del)

Uses the callback for all resolved addresses.

kill
bool kill()

Cleans up underlying resources. Used as a placeholder for possible future purposes.

resolveHost
bool resolveHost(string url, bool ipv6, bool force_async)

Sends a request through a thread pool for the specified host to be resolved. The callback specified in run() will be signaled with the OS-specific NetworkAddress structure.

resolveIP
NetworkAddress resolveIP(string url, bool ipv6)

Returns an OS-specific NetworkAddress structure from the specified IP.

Properties

cmdInfo
DNSCmdInfo cmdInfo [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
error
string error [@property getter]
status
StatusInfo status [@property getter]
status
StatusInfo status [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
waiting
bool waiting [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
waiting
bool waiting [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.

Meta