DtlsServerConnection

Added in version 2.48.

class DtlsServerConnection(*args, **kwargs)

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

Methods

class DtlsServerConnection
new(base_socket: DatagramBased, certificate: TlsCertificate | None = None) DtlsServerConnection

Creates a new GDtlsServerConnection wrapping base_socket.

Added in version 2.48.

Parameters:
  • base_socket – the DatagramBased to wrap

  • certificate – the default server certificate, or None

Properties

class DtlsServerConnection
props.authentication_mode: TlsAuthenticationMode

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

Added in version 2.48.