Skip to content

Gio.DtlsServerConnection

interface

GDtlsServerConnection is the server-side subclass of DtlsConnection, representing a server-side DTLS connection.

Static functions

new

@staticmethod
def new(base_socket: DatagramBased, certificate: TlsCertificate | None = ...) -> DtlsServerConnection

Creates a new DtlsServerConnection wrapping base_socket.

Parameters:

  • base_socket — the DatagramBased to wrap
  • certificate — the default server certificate, or None

Properties

authentication_mode

authentication_mode: TlsAuthenticationMode | int  # read/write

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