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 a gnutls_session_t type. 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:


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