:right-sidebar: True TlsServerConnection =================================================================== .. currentmodule:: gi.repository.Gio .. versionadded:: 2.28 .. class:: TlsServerConnection(*args, **kwargs) :no-contents-entry: ``GTlsServerConnection`` is the server-side subclass of :obj:`~gi.repository.Gio.TlsConnection`, representing a server-side TLS connection. Methods ------- .. rst-class:: interim-class .. class:: TlsServerConnection :no-index: .. method:: new(base_io_stream: ~gi.repository.Gio.IOStream, certificate: ~gi.repository.Gio.TlsCertificate | None = None) -> ~gi.repository.Gio.TlsServerConnection Creates a new ``GTlsServerConnection`` wrapping ``base_io_stream`` (which must have pollable input and output streams). See the documentation for :obj:`~gi.repository.Gio.TlsConnection`:base-io-stream for restrictions on when application code can run operations on the ``base_io_stream`` after this function has returned. .. versionadded:: 2.28 :param base_io_stream: the :obj:`~gi.repository.Gio.IOStream` to wrap :param certificate: the default server certificate, or :const:`None` Properties ---------- .. rst-class:: interim-class .. class:: TlsServerConnection :no-index: .. attribute:: props.authentication_mode :type: ~gi.repository.Gio.TlsAuthenticationMode The :obj:`~gi.repository.Gio.TlsAuthenticationMode` for the server. This can be changed before calling :func:`~gi.repository.Gio.TlsConnection.handshake` if you want to rehandshake with a different mode from the initial handshake. .. versionadded:: 2.28