Method

GioSocketConnectionconnect_async

Declaration

void
g_socket_connection_connect_async (
  GSocketConnection* connection,
  GSocketAddress* address,
  GCancellable* cancellable,
  GAsyncReadyCallback callback,
  gpointer user_data
)

Description

Asynchronously connect connection to the specified remote address.

This clears the GSocket:blocking flag on connections underlying socket if it is currently set.

Use g_socket_connection_connect_finish() to retrieve the result.

Available since:2.32

Parameters

address GSocketAddress
 

A GSocketAddress specifying the remote address.

 The data is owned by the caller of the function.
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.