Virtual Method
GioResolverlookup_records_async
since: 2.34
Declaration
void
lookup_records_async (
GResolver* resolver,
const gchar* rrname,
GResolverRecordType record_type,
GCancellable* cancellable,
GAsyncReadyCallback callback,
gpointer user_data
)
Description
Begins asynchronously performing a DNS lookup for the given
rrname, and eventually calls callback, which must call
g_resolver_lookup_records_finish() to get the final result. See
g_resolver_lookup_records() for more details.
Available since: 2.34
Parameters
rrname-
Type:
const gchar*The DNS name to look up the record for.
The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string. record_type-
Type:
GResolverRecordTypeThe type of DNS record to look up.
cancellable-
Type:
GCancellableA
GCancellable, orNULL.The argument can be NULL.The data is owned by the caller of the function. callback-
Type:
GAsyncReadyCallbackCallback to call after resolution completes.
user_data-
Type:
gpointerData for
callback.The argument can be NULL.The data is owned by the caller of the function.