gio.dtls_connection.DtlsConnection is the base DTLS connection class type, which wraps a gio.datagram_based.DatagramBased and provides DTLS encryption on top of it. Its subclasses, gio.dtls_client_connection.DtlsClientConnection and gio.dtls_server_connection.DtlsServerConnection, implement client-side and server-side DTLS, respectively.