Virtual Method
GioResolverlookup_by_name_async
since: 2.22
Declaration [src]
void
lookup_by_name_async (
GResolver* resolver,
const gchar* hostname,
GCancellable* cancellable,
GAsyncReadyCallback callback,
gpointer user_data
)
Description [src]
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.
Available since: 2.22
Parameters
hostname
-
Type:
const gchar*
The hostname to look up the address of.
The data is owned by the caller of the method. The value is a NUL terminated UTF-8 string. cancellable
-
Type:
GCancellable
A
GCancellable
, orNULL
.The argument can be NULL
.The data is owned by the caller of the method. callback
-
Type:
GAsyncReadyCallback
Callback to call after resolution completes.
user_data
-
Type:
gpointer
Data for
callback
.The argument can be NULL
.The data is owned by the caller of the method.