Method

GioSocketListeneraccept_socket_finish

Declaration

GSocket*
g_socket_listener_accept_socket_finish (
  GSocketListener* listener,
  GAsyncResult* result,
  GObject** source_object,
  GError** error
)

Description

Finishes an async accept operation. See g_socket_listener_accept_socket_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: GSocket
 

A GSocket on success, NULL on error.

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