Gio.TlsClientConnection.new
function new(base_io_stream: Gio.IOStream, server_identity: Gio.SocketConnectable): Gio.TlsClientConnection { // Gjs wrapper for g_tls_client_connection_new() }
Creates a new Gio.TlsClientConnection wrapping base_io_stream (which must have pollable input and output streams) which is assumed to communicate with the server identified by server_identity.
Since 2.28
- base_io_stream
the Gio.IOStream to wrap
- server_identity
the expected identity of the server
- Returns
the new Gio.TlsClientConnection, or null on error