Resolver.lookupByNameAsync

Begins asynchronously resolving hostname to determine its associated IP address(es), and eventually calls callback, which must call gio.resolver.Resolver.lookupByNameFinish to get the result. See gio.resolver.Resolver.lookupByName for more details.

class Resolver
void
lookupByNameAsync

Parameters

hostname string

the hostname to look up the address of

cancellable gio.cancellable.Cancellable

a #GCancellable, or null

callback gio.types.AsyncReadyCallback

callback to call after resolution completes