RGtk2 (version 2.20.31)

gResolverLookupByAddressFinish: gResolverLookupByAddressFinish

Description

Retrieves the result of a previous call to gResolverLookupByAddressAsync.

Usage

gResolverLookupByAddressFinish(object, result, .errwarn = TRUE)

Arguments

object
result
the result passed to your GAsyncReadyCallback
.errwarn
Whether to issue a warning on error or fail silently

Value

A list containing the following elements:
retval
[character] a hostname (either ASCII-only, or in ASCII-encoded form), or NULL on error.
error
return location for a GError, or NULL

Details

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 G_IO_ERROR_CANCELLED. Since 2.22