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