Gio.TlsServerConnection¶
| Implementations: | |
|---|---|
| None | |
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.GInterfaceStructure: Gio.TlsServerConnectionInterfaceGio.TlsServerConnectionis the server-side subclass ofGio.TlsConnection, representing a server-side TLS connection.New in version 2.28.
-
classmethod
new(base_io_stream, certificate)[source]¶ Parameters: - base_io_stream (
Gio.IOStream) – theGio.IOStreamto wrap - certificate (
Gio.TlsCertificateorNone) – the default server certificate, orNone
Raises: Returns: the new
Gio.TlsServerConnection, orNoneon errorReturn type: Creates a new
Gio.TlsServerConnectionwrapping base_io_stream (which must have pollable input and output streams).See the documentation for
Gio.TlsConnection:base-io-streamfor restrictions on when application code can run operations on the base_io_stream after this function has returned.New in version 2.28.
- base_io_stream (
-
classmethod
Property Details¶
-
Gio.TlsServerConnection.props.authentication_mode¶ Name: authentication-modeType: Gio.TlsAuthenticationModeDefault Value: Gio.TlsAuthenticationMode.NONEFlags: READABLE,WRITABLEThe
Gio.TlsAuthenticationModefor the server. This can be changed before callingGio.TlsConnection.handshake() if you want to rehandshake with a different mode from the initial handshake.New in version 2.28.