Resolver.lookupByNameWithFlagsAsync

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

class Resolver
void
lookupByNameWithFlagsAsync

Parameters

hostname string

the hostname to look up the address of

flags GResolverNameLookupFlags

extra GResolverNameLookupFlags for the lookup

cancellable Cancellable

a gio.Cancellable, or NULL

callback GAsyncReadyCallback

callback to call after resolution completes

userData void*

data for callback

Meta

Since

2.60