DtlsConnection


Object Hierarchy:

GLib.DtlsConnection GLib.DtlsConnection GLib.DtlsConnection GLib.Object GLib.Object GLib.Object->GLib.DtlsConnection GLib.DatagramBased GLib.DatagramBased GLib.DatagramBased->GLib.DtlsConnection

Description:

[ CCode ( type_cname = "GDtlsConnectionInterface" , type_id = "g_dtls_connection_get_type ()" ) ]
[ Version ( since = "2.48" ) ]
public interface DtlsConnection : Object, DatagramBased

`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.

All known sub-interfaces:

Namespace: GLib
Package: gio-2.0

Content:

Properties:

Methods:

Signals:

Inherited Members: