lookupByNameWithFlags

open fun lookupByNameWithFlags(hostname: String, flags: ResolverNameLookupFlags, cancellable: Cancellable? = null): <Error class: unknown class><<Error class: unknown class>>

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.

Return

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.)

Since

2.60

Parameters

hostname

the hostname to look up

flags

extra #GResolverNameLookupFlags for the lookup

cancellable

a #GCancellable, or null