Method

GioSocketConnectionconnect

Declaration

gboolean
g_socket_connection_connect (
  GSocketConnection* connection,
  GSocketAddress* address,
  GCancellable* cancellable,
  GError** error
)

Description

Connect connection to the specified remote address.

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.
error GError **
  The return location for a GError*, or NULL.

Return value

Returns: gboolean
 

TRUE if the connection succeeded, FALSE on error.