Resolver.lookupRecordsFinish

Retrieves the result of a previous call to gio.resolver.Resolver.lookupRecordsAsync. Returns a non-empty list of records as #GVariant tuples. See #GResolverRecordType for information on what the records contain.

If the DNS resolution failed, error (if non-null) will be set to a value from #GResolverError. If the operation was cancelled, error will be set to gio.types.IOErrorEnum.Cancelled.

class Resolver
lookupRecordsFinish

Parameters

result gio.async_result.AsyncResult

the result passed to your #GAsyncReadyCallback

Return Value

Type: glib.variant.VariantG[]

a non-empty #GList of #GVariant, or null on error. You must free each of the records and the list when you are done with it. (You can use glib.list.List.freeFull with glib.variant.VariantG.unref to do this.)