gnutls_record_discard_queued(3)

gnutls_record_discard_queued3

Api function

Usage

#include <gnutls/gnutls.h>

size_t gnutls_record_discard_queued(gnutls_session_t session);

Arguments

gnutls_session_t session

is a gnutls_session_t type.

Overview

This function discards all queued to be sent packets in a DTLS session. These are the packets queued after an interrupted gnutls_record_send().

This function can only be used with transports where send() is an all-or-nothing operation (e.g., UDP). When partial writes are allowed this function will cause session errors.

Returns

The number of bytes discarded.

Since

3.4.0

Releases

6 releases since Debian 9 (Stretch); the text changed 5 times.

  1. 9
  2. 10
  3. 11
  4. 12
  5. 13
  6. Arch

Reporting bugs

Report bugs to <[email protected]>.
Home page: https://www.gnutls.org

From gnutls 3.8.13-3 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.