Resolver.lookupByNameWithFlags

This differs from g_resolver_lookup_by_name() 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 #GCancellable, or %NULL

Return Value

Type: ListG

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

Throws

GException on failure.

Meta

Since

2.60