Gio.TlsServerConnection.new
function new(base_io_stream: Gio.IOStream, certificate: Gio.TlsCertificate): Gio.TlsServerConnection { // Gjs wrapper for g_tls_server_connection_new() }
Creates a new Gio.TlsServerConnection wrapping base_io_stream (which must have pollable input and output streams).
Since 2.28
- base_io_stream
the Gio.IOStream to wrap
- certificate
the default server certificate, or null
- Returns
the new Gio.TlsServerConnection, or null on error