@new


Description:

public static DtlsServerConnection @new (DatagramBased base_socket, TlsCertificate? certificate) throws Error

Creates a new DtlsServerConnection wrapping base_socket.

Parameters:

base_socket

the DatagramBased to wrap

certificate

the default server certificate, or null

Returns:

the new DtlsServerConnection, or null on error