@new


Description:

public static DtlsClientConnection @new (DatagramBased base_socket, SocketConnectable? server_identity) throws Error

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

Parameters:

base_socket

the DatagramBased to wrap

server_identity

the expected identity of the server

Returns:

the new DtlsClientConnection, or null on error




2022 vala-language.org