Method

GioSocketListeneraccept_finish

Declaration

GSocketConnection*
g_socket_listener_accept_finish (
  GSocketListener* listener,
  GAsyncResult* result,
  GObject** source_object,
  GError** error
)

Description

Finishes an async accept operation. See g_socket_listener_accept_async()

Available since:2.22

Parameters

result GAsyncResult
 

A GAsyncResult.

 The data is owned by the caller of the function.
source_object GObject
 

Optional GObject identifying this source.

 The argument will be set by the function.
 The argument can be set to NULL.
 The argument can be NULL.
 The data is owned by the caller of the function.
error GError **
  The return location for a GError*, or NULL.

Return value

Returns: GSocketConnection
 

A GSocketConnection on success, NULL on error.

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