Function

GioDtlsClientConnectionnew

Declaration

GDatagramBased*
g_dtls_client_connection_new (
  GDatagramBased* base_socket,
  GSocketConnectable* server_identity,
  GError** error
)

Description

Creates a new GDtlsClientConnection wrapping base_socket which is assumed to communicate with the server identified by server_identity.

Available since:2.48

Parameters

base_socket GDatagramBased
 

The GDatagramBased to wrap.

 The data is owned by the caller of the function.
server_identity GSocketConnectable
 

The expected identity of the server.

 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: GDtlsClientConnection
 

The new GDtlsClientConnection, or NULL on error.

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