new

fun new(baseIoStream: IOStream, certificate: TlsCertificate? = null): <Error class: unknown class><TlsServerConnection>

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.

Return

the new #GTlsServerConnection, or null on error

Since

2.28

Parameters

baseIoStream

the #GIOStream to wrap

certificate

the default server certificate, or null