:right-sidebar: True DtlsServerConnection =================================================================== .. currentmodule:: gi.repository.Gio .. versionadded:: 2.48 .. class:: DtlsServerConnection(*args, **kwargs) :no-contents-entry: ``GDtlsServerConnection`` is the server-side subclass of :obj:`~gi.repository.Gio.DtlsConnection`, representing a server-side DTLS connection. Methods ------- .. rst-class:: interim-class .. class:: DtlsServerConnection :no-index: .. method:: new(base_socket: ~gi.repository.Gio.DatagramBased, certificate: ~gi.repository.Gio.TlsCertificate | None = None) -> ~gi.repository.Gio.DtlsServerConnection Creates a new ``GDtlsServerConnection`` wrapping ``base_socket``. .. versionadded:: 2.48 :param base_socket: the :obj:`~gi.repository.Gio.DatagramBased` to wrap :param certificate: the default server certificate, or :const:`None` Properties ---------- .. rst-class:: interim-class .. class:: DtlsServerConnection :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.DtlsConnection.handshake` if you want to rehandshake with a different mode from the initial handshake. .. versionadded:: 2.48