gnutls_alert_set_read_function(3)

πŸ’– NAME πŸ’–

okay bestie, so like β€” gnutls_alert_set_read_function is literally an API function from the gnutls manual, and she's here to help you vibe with alert messages. no cap.


✨ SYNOPSIS ✨

#include <gnutls/gnutls.h>

void gnutls_alert_set_read_function(gnutls_session_t session,
gnutls_alert_read_func func);

like, that's the whole signature. look at her. iconic. πŸŽ€


🌸 ARGUMENTS 🌸

  • gnutls_session_t session β€” bestie this one is just, like, a gnutls_session_t type. that's it, that's the tea. 🫢
  • gnutls_alert_read_func func β€” this is the function to be called. the callback. the main character of this whole operation. πŸ‘‘

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so the way this works: this function will set a callback to be called when an alert message is being sent. literally that's it. you hand her the function, she holds onto it, and when an alert message goes out, your callback gets the call. no notes. periodt. πŸ’…


⭐ SINCE ⭐

3.7.0 β€” she's been around since 3.7.0, so she's not new here, she's just lowkey underrated. 🌈


😭 REPORTING BUGS 😭

found a bug? not the vibe, but okay, spill it β€” report bugs to <bugs@gnutls.org>.

home page is right here: https://www.gnutls.org 🫢


Copyright Β© 2001-2023 Free Software Foundation, Inc., and others.

and listen β€” 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, legally. πŸ’œ


πŸ’€ SEE ALSO πŸ’€

the full documentation for gnutls is maintained as a Texinfo manual. so if the /usr/share/doc/gnutls/ directory does not contain the HTML form, bestie, just go visit:

https://www.gnutls.org/manual/

that's the whole page, babe. go set that callback and go off. πŸ“πŸ§šπŸŒΈ

gnutls 3.8.13 β€” mwah, love her, bye bestie! πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from