DtlsConnection


Object Hierarchy:

Object hierarchy for DtlsConnection

Description:

[ Version ( since = "2.48" ) ]
public interface DtlsConnection : Object, DatagramBased

DtlsConnection is the base DTLS connection class type, which wraps a DatagramBased and provides DTLS encryption on top of it.

Its subclasses, DtlsClientConnection and DtlsServerConnection, implement client-side and server-side DTLS, respectively.

For TLS support, see TlsConnection.

As DTLS is datagram based, DtlsConnection implements DatagramBased, presenting a datagram-socket-like API for the encrypted connection. This operates over a base datagram connection, which is also a DatagramBased (base_socket).

To close a DTLS connection, use close.

Neither DtlsServerConnection or DtlsClientConnection set the peer address on their base DatagramBased if it is a Socket — it is up to the caller to do that if they wish. If they do not, and close is called on the base socket, the DtlsConnection will not raise a g_io_error_not_connected error on further I/O.

All known sub-interfaces:

Namespace: GLib
Package: gio-2.0

Content:

Properties:

Methods:

Signals:

Inherited Members: