Resolver.lookupByNameWithFlags

This differs from Resolver.lookupByName in that you can modify the lookup behavior with flags. For example this can be used to limit results with G_RESOLVER_NAME_LOOKUP_FLAGS_IPV4_ONLY

class Resolver
lookupByNameWithFlags

Parameters

hostname string

the hostname to look up

flags GResolverNameLookupFlags

extra GResolverNameLookupFlags for the lookup

cancellable Cancellable

a gio.Cancellable, or NULL

Return Value

Type: ListG

a non-empty GList of gio.InetAddress, or NULL on error. You must unref each of the addresses and free the list when you are done with it. (You can use Resolver.freeAddresses to do this.)

Throws

GException on failure.

Meta

Since

2.60