TlsServerConnection.new_

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

See the documentation for #GTlsConnection:base-io-stream for restrictions on when application code can run operations on the base_io_stream after this function has returned.

Parameters

baseIoStreamthe #GIOStream to wrap
certificatethe default server certificate, or null

Returns

the new

#GTlsServerConnection, or null on error

Throws

[ErrorWrap]