Method

GioSocketAddressEnumeratornext_finish

Declaration

GSocketAddress*
g_socket_address_enumerator_next_finish (
  GSocketAddressEnumerator* enumerator,
  GAsyncResult* result,
  GError** error
)

Description

Retrieves the result of a completed call to g_socket_address_enumerator_next_async(). See g_socket_address_enumerator_next() for more information about error handling.

Parameters

result GAsyncResult
 

A GAsyncResult.

 The data is owned by the caller of the function.
error GError **
  The return location for a GError*, or NULL.

Return value

Returns: GSocketAddress
 

A GSocketAddress (owned by the caller), or NULL on error (in which case *error will be set) or if there are no more addresses.

 The caller of the method takes ownership of the data, and is responsible for freeing it.