new

fun new(baseSocket: DatagramBased, serverIdentity: SocketConnectable? = null): <Error class: unknown class><DtlsClientConnection>

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

Return

the new #GDtlsClientConnection, or null on error

Since

2.48

Parameters

baseSocket

the #GDatagramBased to wrap

serverIdentity

the expected identity of the server