TlsServerConnection

Added in version 2.28.

class TlsServerConnection(*args, **kwargs)

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

Methods

class TlsServerConnection
new(base_io_stream: IOStream, certificate: TlsCertificate | None = None) TlsServerConnection

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

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

Added in version 2.28.

Parameters:
  • base_io_stream – the IOStream to wrap

  • certificate – the default server certificate, or None

Properties

class TlsServerConnection
props.authentication_mode: TlsAuthenticationMode

The type of the None singleton.

Added in version 2.28.