Method
GioResolverlookup_by_name_async
since: 2.22
Declaration [src]
void
g_resolver_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
This method completes asynchronously. Use g_resolver_lookup_by_name_finish() inside the GAsyncReadyCallback to obtain the result of the operation.
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: GCancellableA GCancellable, orNULL.The argument can be NULL.The data is owned by the caller of the method. 
- callback
- 
            Type: GAsyncReadyCallbackCallback to call after resolution completes. The argument can be NULL.
- user_data
- 
            Type: gpointerData for callback.The argument can be NULL.The data is owned by the caller of the method.