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

baseIoStream gio.iostream.IOStream

the #GIOStream to wrap

certificate gio.tls_certificate.TlsCertificate

the default server certificate, or null

Return Value

Type: gio.tls_server_connection.TlsServerConnection

the new #GTlsServerConnection, or null on error