gnutls_record_discard_queued(3)
β¨ NAME β¨
gnutls_record_discard_queued β bestie, it's an API function π
(yes, from the gnutls manual, we're fancy here)
πΈ SYNOPSIS πΈ
#include <gnutls/gnutls.h>
size_t gnutls_record_discard_queued(gnutls_session_t session);
π ARGUMENTS π
gnutls_session_t sessionβ okay so this is agnutls_session_ttype. That's it. That's the whole argument. She's low maintenance. π«Ά
π DESCRIPTION π
okay so picture this: you're in a DTLS session, right, and some packets are just sitting there in the queue, waiting to be sent. This function? She takes all of them and throws them in the trash. ποΈβ¨
Specifically β these are the packets that got queued up after an interrupted gnutls_record_send(). So if your send got cut off and left a lil pile of unfinished business behind, this is your girl. She clears the whole pile. no cap.
β οΈ BUT. And this is a big but, bestie. This function can only be used with transports where send() is an all-or-nothing operation β think UDP, the classic. If your transport allows partial writes? Yeah no. Using this function there will cause session errors. Not a vibe. Do not do it. π
π₯ RETURNS π₯
The number of bytes discarded. She tells you exactly how much she threw away. Iconic, honestly. π
π¦ SINCE π¦
3.4.0 β she's been around, she's a legend, she's got history. β
π REPORTING BUGS π
Found a bug? spill the tea, not to me, to the actual maintainers:
- Report bugs to <bugs@gnutls.org>.
- Home page: https://www.gnutls.org
π COPYRIGHT π
Copyright Β© 2001-2023 Free Software Foundation, Inc., and others.
Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. (fr fr, just keep the notice, that's the whole deal π«Ά)
π SEE ALSO π
The full documentation for gnutls is maintained as a Texinfo manual. If the /usr/share/doc/gnutls/ directory does not contain the HTML form, visit:
https://www.gnutls.org/manual/
and that's the whole page, bestie!! ππΈ this one's from gnutls version 3.8.13, page gnutls_record_discard_queued(3) β go forth, discard those queued packets responsibly, and remember: UDP only, or the session will simply perish ππ
π¦ where this page comes from
- alpine 3.22: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- alpine 3.23: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- alpine 3.24: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- arch rolling: gnutls 3.8.13-3 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 43: gnutls-devel 3.8.13-1.fc43 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 43: gnutls-devel 3.8.13-1.fc43 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 44: gnutls-devel 3.8.13-1.fc44 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 44: gnutls-devel 3.8.13-1.fc44 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- ubuntu stonking: gnutls-doc 3.8.13-1ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms