gnutls_heartbeat_get_timeout(3)
β¨ gnutls_heartbeat_get_timeout β¨
okay bestie, we're deep in the gnutls manual right now β this one's a function page, and yes it's exactly as niche and exactly as useful as it sounds π
πΈ NAME πΈ
gnutls_heartbeat_get_timeout β an API function, and honestly? it's giving clock watcher β°
π¦ SYNOPSIS π¦
#include <gnutls/gnutls.h>
unsigned int gnutls_heartbeat_get_timeout(gnutls_session_t session);
π ARGUMENTS π
gnutls_session_t sessionβ bestie this is just agnutls_session_ttype. that's the whole vibe. it's the session, she's the main character, we're asking her a question π
β¨ DESCRIPTION β¨
so here's the tea π β this function hands you back the milliseconds remaining before a retransmission of that ping message you sent earlier. like, the ping you already yeeted out into the world.
and why do you care? because when you're using ping in non-blocking mode, you can't just sit there and wait. so you call this bad boy to estimate when you should call gnutls_heartbeat_ping() if no packets have come home yet. it's literally your little countdown timer bestie, no cap π«Ά
π₯ RETURNS π₯
the remaining time, in milliseconds. that's it, that's the whole answer β
π SINCE π
3.1.2 β she's been around, she's iconic, periodt π
π REPORTING BUGS π
found something cursed? don't suffer in silence, tell the devs:
- 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. (translation: you can share it, just keep the receipts bestie π§)
π 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/
ngl if you got this far you're genuinely built different π
and that's a wrap, bestie β this page came to you from the gnutls manual, version 3.8.13, and it's literally called gnutls_heartbeat_get_timeout(3). mwah π
β¨
π¦ 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