GDtlsConnectionInterface

Virtual method table for a #GDtlsConnection implementation.

Members

Variables

acceptCertificate
bool function(GDtlsConnection* connection, GTlsCertificate* peerCert, GTlsCertificateFlags errors) acceptCertificate;

Check whether to accept a certificate.

gIface
GTypeInterface gIface;

The parent interface.

getBindingData
bool function(GDtlsConnection* conn, GTlsChannelBindingType type, GByteArray* data, GError** _err) getBindingData;

Retrieve TLS channel binding data (Since: 2.66)

getNegotiatedProtocol
const(char)* function(GDtlsConnection* conn) getNegotiatedProtocol;

Get ALPN-negotiated protocol (Since: 2.60)

handshake
bool function(GDtlsConnection* conn, GCancellable* cancellable, GError** _err) handshake;

Perform a handshake operation.

handshakeAsync
void function(GDtlsConnection* conn, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) handshakeAsync;

Start an asynchronous handshake operation.

handshakeFinish
bool function(GDtlsConnection* conn, GAsyncResult* result, GError** _err) handshakeFinish;

Finish an asynchronous handshake operation.

setAdvertisedProtocols
void function(GDtlsConnection* conn, const(char*)* protocols) setAdvertisedProtocols;

Set APLN protocol list (Since: 2.60)

shutdown
bool function(GDtlsConnection* conn, bool shutdownRead, bool shutdownWrite, GCancellable* cancellable, GError** _err) shutdown;

Shut down one or both directions of the connection.

shutdownAsync
void function(GDtlsConnection* conn, bool shutdownRead, bool shutdownWrite, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) shutdownAsync;

Start an asynchronous shutdown operation.

shutdownFinish
bool function(GDtlsConnection* conn, GAsyncResult* result, GError** _err) shutdownFinish;

Finish an asynchronous shutdown operation.