Resolver.lookupByNameAsync

void lookupByNameAsync(string hostname, gio.cancellable.Cancellable cancellable = null, gio.types.AsyncReadyCallback callback = null)

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.

Parameters

hostnamethe hostname to look up the address of
cancellablea #GCancellable, or null
callbackcallback to call after resolution completes