gnutls_heartbeat_allowed(3)

πŸ’– gnutls_heartbeat_allowed(3) πŸ’–

okay bestie, welcome to the gnutls manual page for gnutls_heartbeat_allowed ✨ this one's short and sweet, so let's go 🫢


🌸 NAME 🌸

gnutls_heartbeat_allowed β€” an API function, bestie. that's the whole name. it does exactly what it says on the tin πŸ’…


✨ SYNOPSIS ✨

#include <gnutls/gnutls.h>

unsigned gnutls_heartbeat_allowed(gnutls_session_t session, unsigned int
type);

like look at that signature. she's giving "small but mighty" πŸ’–


πŸŽ€ ARGUMENTS πŸŽ€

  • gnutls_session_t session β€” is a gnutls_session_t type. yes, that's the literal description and honestly? iconic. it's the session, girl, that's the vibe 🌸
  • unsigned int type β€” one of GNUTLS_HB_LOCAL_ALLOWED_TO_SEND and GNUTLS_HB_PEER_ALLOWED_TO_SEND πŸ¦‹ you pick which direction you're asking about β€” us sending, or the peer sending. pick wisely, there's literally only two options πŸ’€

πŸ’… DESCRIPTION πŸ’…

so here's the tea: this function will check whether heartbeats are allowed to be sent or received in this session ☁️

that's it. that's the whole job. she checks, she tells you, she moves on. no cap πŸ‘‘


⭐ RETURNS ⭐

Non zero if heartbeats are allowed πŸ”₯

so like, if you get a nonzero back? allowed. if you get zero? not allowed. that's the whole vibe check, bestie πŸ’œ

🌈 SINCE 🌈

3.1.2 β€” she's been around a minute, lowkey a legend at this point πŸŽ€


😭 REPORTING BUGS 😭

found a bug? not me manifesting that, but if it happens:

please do actually report them, the maintainers 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.

translation: you can copy and share this, just don't be weird about it and keep the copyright notice + this notice intact. periodt πŸ’–

πŸ¦‹ 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 big manual, she's got the full lore πŸ“šβœ¨


and that's the page, bestie!! this was gnutls_heartbeat_allowed(3) from gnutls version 3.8.13, and honestly she ate πŸ’…πŸ«Ά go check your heartbeats, stay slay, mwah πŸ’–πŸŒˆ

πŸ“¦ where this page comes from