AsyncDNS

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

Constructors

this
this(EventLoop evl)

Members

Functions

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 = false, bool force_async = false)

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

error
string error [@property getter]
status
StatusInfo status [@property getter]

Meta