DtlsConnection.shutdownAsync

void shutdownAsync(bool shutdownRead, bool shutdownWrite, int ioPriority, gio.cancellable.Cancellable cancellable = null, gio.types.AsyncReadyCallback callback = null)

Asynchronously shut down part or all of the DTLS connection. See [gio.dtls_connection.DtlsConnection.shutdown] for more information.

Parameters

shutdownReadtrue to stop reception of incoming datagrams
shutdownWritetrue to stop sending outgoing datagrams
ioPrioritythe [I/O priority][io-priority] of the request
cancellablea #GCancellable, or null
callbackcallback to call when the shutdown operation is complete