@new


Description:

public static TlsServerConnection? @new (IOStream base_io_stream, TlsCertificate? certificate) throws Error

Creates a new TlsServerConnection wrapping base_io_stream ( which must have pollable input and output streams).

Parameters:

base_io_stream

the IOStream to wrap

certificate

the default server certificate, or null

Returns:

the new TlsServerConnection, or null on error