Method
GioSocketListeneraccept_async
since: 2.22
Declaration
void
g_socket_listener_accept_async (
GSocketListener* listener,
GCancellable* cancellable,
GAsyncReadyCallback callback,
gpointer user_data
)
Description
This is the asynchronous version of g_socket_listener_accept().
When the operation is finished callback will be
called. You can then call g_socket_listener_accept_finish()
to get the result of the operation.
Available since: 2.22
This method completes asynchronously. Use g_socket_listener_accept_finish() inside the GAsyncReadyCallback to obtain the result of the operation.
Parameters
cancellable-
Type:
GCancellableA
GCancellable, orNULL.The argument can be NULL.The data is owned by the caller of the method. callback-
Type:
GAsyncReadyCallbackA
GAsyncReadyCallback.The argument can be NULL. user_data-
Type:
gpointerUser data for the callback.
The argument can be NULL.The data is owned by the caller of the method.