DtlsClientConnection.new_

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

Parameters

baseSocket gio.datagram_based.DatagramBased

the #GDatagramBased to wrap

serverIdentity gio.socket_connectable.SocketConnectable

the expected identity of the server

Return Value

Type: gio.dtls_client_connection.DtlsClientConnection

the new #GDtlsClientConnection, or null on error