gnutls_heartbeat_enable(3)
π gnutls_heartbeat_enable(3) π
okay bestie, we're in the gnutls manual and today's main character is gnutls_heartbeat_enable β an API function, periodt. π«Ά
β¨ NAME β¨
gnutls_heartbeat_enable β literally an API function, that's the whole vibe π
πΈ SYNOPSIS πΈ
#include <gnutls/gnutls.h>
void gnutls_heartbeat_enable(gnutls_session_t session, unsigned int
type);
look at her. she's a void, she takes two things, she doesn't return anything. unbothered. iconic. π
π ARGUMENTS π
gnutls_session_t sessionβ bestie this is agnutls_session_ttype, that's the whole tea πunsigned int typeβ and this one is one of theGNUTLS_HB_*flags. pick your fighter β¨
π¦ DESCRIPTION π¦
okay so here's the lore π
If you call this function with the GNUTLS_HB_PEER_ALLOWED_TO_SEND type, GnuTLS will allow heartbeat messages to be received. And not only that β it also requests the peer to accept heartbeat messages. the way it does both?? multi-tasking queen π
β οΈ real talk though: this function must be called prior to TLS handshake. do not come in late, she is not accepting tardy arrivals π
If the type you used is GNUTLS_HB_LOCAL_ALLOWED_TO_SEND, then the peer will be asked to accept heartbeat messages but not send ones. so like, receiving yes, sending no. boundaries, we love to see it π
And heads up β the function gnutls_heartbeat_allowed() can be used to test whether locally generated heartbeat messages can be accepted by the peer. use her for the vibe check π
β SINCE β
3.1.2 β an elder. she's been slaying since way back, no cap π
π REPORTING BUGS π
found a bug? not me gatekeeping β go tell the people, fr fr:
- 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. so like β go ahead, 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/
and that's the whole page, no crumbs left π§
this has been gnutls 3.8.13, manual page gnutls_heartbeat_enable(3), mwah π bye bestie, go call her before the handshake iykyk π«Άβ¨
π¦ 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