Method

GioSocketListeneraccept_socket_async

Declaration

void
g_socket_listener_accept_socket_async (
  GSocketListener* listener,
  GCancellable* cancellable,
  GAsyncReadyCallback callback,
  gpointer user_data
)

Description

This is the asynchronous version of g_socket_listener_accept_socket().

When the operation is finished callback will be called. You can then call g_socket_listener_accept_socket_finish() to get the result of the operation.

Available since:2.22

Parameters

cancellable GCancellable
 

A GCancellable, or NULL.

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

A GAsyncReadyCallback.

user_data gpointer
 

User data for the callback.