DtlsClientConnection.new_

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

Parameters

baseSocketthe #GDatagramBased to wrap
serverIdentitythe expected identity of the server

Returns

the new

#GDtlsClientConnection, or null on error

Throws

[ErrorWrap]