gnutls_record_cork(3)

πŸ’… gnutls_record_cork(3) β€” the gnutls manual, bestie edition πŸŽ€

okay so welcome to the gnutls manual, page for gnutls_record_cork. pull up a chair, grab a strawberry πŸ“, we're learning about pausing your sends. it's giving backpressure. it's giving ✨control✨.


🌸 NAME 🌸

gnutls_record_cork β€” literally just an API function, no cap.


✨ SYNOPSIS ✨

#include <gnutls/gnutls.h>

void gnutls_record_cork(gnutls_session_t session);

🫢 ARGUMENTS 🫢

  • gnutls_session_t session β€” bestie. it's a gnutls_session_t type. that's the whole vibe. that's the whole argument.

πŸ’– DESCRIPTION πŸ’–

so the way this works: if you call this, gnutls_record_send() will no longer send any records. periodt. πŸ’€

any records you send just get cached instead, chilling in the buffer, waiting. they stay there until you call gnutls_record_uncork() and let them out. it's like holding your breath but for network packets πŸ¦‹

ngl, important note: this function is safe to use with DTLS β€” but only after GnuTLS 3.3.0. so if you're on something older than that with DTLS, that's a no from me πŸ™ˆ

⭐ SINCE ⭐

3.1.9 β€” she's been iconic since 3.1.9, we've been obsessed.


😭 REPORTING BUGS 😭

found a bug? tell the devs, they wanna know fr fr:


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. (slay, that's the license, go forth and redistribute πŸ’œ)


🌈 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 πŸŽ€ mwah. this was the gnutls manual, version 3.8.13, page gnutls_record_cork(3). go cork responsibly and drink some water πŸ’–βœ¨πŸ¦‹

πŸ“¦ where this page comes from