Resolver.lookupByNameAsync

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

class Resolver
void
lookupByNameAsync

Parameters

hostname string

the hostname to look up the address of

cancellable Cancellable

a GCancellable, or NULL. [allow-none]

callback GAsyncReadyCallback

callback to call after resolution completes. [scope async]

userData void*

data for callback. closure

Meta