Interface ResolverClass.OnLookupByName

Enclosing class:
ResolverClass
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface ResolverClass.OnLookupByName
  • Method Details

    • onLookupByName

      List onLookupByName(CallbackHandler __self, @Nonnull Resolver resolver, @Nonnull Str hostname, @Nullable Cancellable cancellable)
      Parameters:
      resolver - a #GResolver
      hostname - the hostname to look up
      cancellable - a #GCancellable, or %NULL
      Returns:
      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.)