Method

GioSocketAddressEnumeratornext_async

Declaration

void
g_socket_address_enumerator_next_async (
  GSocketAddressEnumerator* enumerator,
  GCancellable* cancellable,
  GAsyncReadyCallback callback,
  gpointer user_data
)

Description

Asynchronously retrieves the next GSocketAddress from enumerator and then calls callback, which must call g_socket_address_enumerator_next_finish() to get the result.

It is an error to call this multiple times before the previous callback has finished.

Parameters

cancellable GCancellable
 

Optional GCancellable object, NULL to ignore.

 The argument can be NULL.
 The data is owned by the caller of the function.
callback GAsyncReadyCallback
 

A GAsyncReadyCallback to call when the request is satisfied.

user_data gpointer
 

The data to pass to callback function.