#GDtlsClientConnection, or null on error
DtlsClientConnection.new_
gio.dtls_client_connection.DtlsClientConnection new_(gio.datagram_based.DatagramBased baseSocket, gio.socket_connectable.SocketConnectable serverIdentity = null)Creates a new #GDtlsClientConnection wrapping base_socket which is assumed to communicate with the server identified by server_identity.
Parameters
baseSocket | the #GDatagramBased to wrap |
serverIdentity | the expected identity of the server |
Returns
the new
Throws
[ErrorWrap]