file: dtlsconnection.aus

class: GDtlsConnection

[28:7] extends: object

GDtlsConnection is the base DTLS connection class type, which wraps a [iface@Gio.DatagramBased] and provides DTLS encryption on top of it. Its subclasses, [iface@Gio.DtlsClientConnection] and [iface@Gio.DtlsServerConnection], implement client-side and server-side DTLS, respectively. For TLS support, see [class@Gio.TlsConnection]. As DTLS is datagram based, GDtlsConnection implements [iface@Gio.DatagramBased], presenting a datagram-socket-like API for the encrypted connection. This operates over a base datagram connection, which is also a GDatagramBased ([property@Gio.DtlsConnection:base-socket]). To close a DTLS connection, use [method@Gio.DtlsConnection.close]. Neither [iface@Gio.DtlsServerConnection] or [iface@Gio.DtlsClientConnection] set the peer address on their base [iface@Gio.DatagramBased] if it is a [class@Gio.Socket] — it is up to the caller to do that if they wish. If they do not, and [method@Gio.Socket.close] is called on the base socket, the GDtlsConnection will not raise a G_IO_ERROR_NOT_CONNECTED error on further I/O.

Members

Methods

class: GDtlsConnectionAcceptcertificateCallback

[737:7] extends: object

Generated low-level callback wrapper for GIR callback accept-certificate.

Members

Methods

class: GDtlsConnectionMeta

[809:14] static extends: object

Generated metadata helpers for DtlsConnection interface surfaces.

Methods