gnutls_dtls_get_timeout(3)
π gnutls_dtls_get_timeout(3) β the gnutls manual, bestie edition π
okay so real talk, this one lives in the gnutls manual, and it's about DTLS timers. yes, timers. stay with me, it's actually iconic. β¨
πΈ NAME πΈ
gnutls_dtls_get_timeout β it's an API function, periodt. that's the whole name. π
π¦ SYNOPSIS π¦
#include <gnutls/dtls.h>
unsigned int gnutls_dtls_get_timeout(gnutls_session_t session);
look at her. so clean. so simple. π«Ά
π ARGUMENTS π
gnutls_session_t sessionβ bestie, this is literally just agnutls_session_ttype. that's the tea. π
β¨ DESCRIPTION β¨
okay so here's the vibe π
this function returns the milliseconds remaining for a retransmission of the previously sent handshake message. like, how long you got until the handshake message needs to go out again. β³
and the way this is actually useful β listen up β is when you're using DTLS in non-blocking mode. then you can use this to estimate when to call gnutls_handshake() if no packets have been received. no packets?? nothing?? crickets?? π¦ call it anyway when the timer says so. main character energy fr fr.
π₯ RETURNS π₯
the remaining time, in milliseconds. that's it. that's the return value. π―
β SINCE β
3.0 β been here since 3.0, she's a veteran, an icon, a legend, and she IS the moment. π
π REPORTING BUGS π
found a bug? not me gatekeeping β report it 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. so like, go off, just keep the receipts. π§Ύβ¨
π§ 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/
like, go read the whole thing. it's giving academic but make it slay. π
and that's the whole page bestie π«Ά this lil rewrite came from the gnutls manual, version 3.8.13, for gnutls_dtls_get_timeout(3) β mwah, no notes, bye π
π
π¦ 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