Gio.TlsServerConnection

g GObject.GInterface GObject.GInterface Gio.TlsServerConnection Gio.TlsServerConnection GObject.GInterface->Gio.TlsServerConnection

Implementations:
 None

Methods

class new (base_io_stream, certificate)

Virtual Methods

None

Properties

Name Type Flags Short Description
authentication-mode Gio.TlsAuthenticationMode r/w The client authentication mode

Signals

None

Fields

None

Class Details

class Gio.TlsServerConnection
Bases:GObject.GInterface
Structure:Gio.TlsServerConnectionInterface

Gio.TlsServerConnection is the server-side subclass of Gio.TlsConnection, representing a server-side TLS connection.

New in version 2.28.

classmethod new(base_io_stream, certificate)[source]
Parameters:
Raises:

GLib.Error

Returns:

the new Gio.TlsServerConnection, or None on error

Return type:

Gio.TlsServerConnection

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

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

New in version 2.28.

Property Details

Gio.TlsServerConnection.props.authentication_mode
Name:authentication-mode
Type:Gio.TlsAuthenticationMode
Default Value:Gio.TlsAuthenticationMode.NONE
Flags:READABLE, WRITABLE

The Gio.TlsAuthenticationMode for the server. This can be changed before calling Gio.TlsConnection.handshake() if you want to rehandshake with a different mode from the initial handshake.

New in version 2.28.