gnutls_transpo..._errno_function(3)

✨ NAME ✨

gnutls_transport_set_errno_function β€” the API function that lets you plug in your own little errno-grabber πŸ’… (this is a page from the gnutls manual, bestie)


πŸŽ€ SYNOPSIS πŸŽ€

#include <gnutls/gnutls.h>

void gnutls_transport_set_errno_function(gnutls_session_t session,
gnutls_errno_func errno_func);

πŸ¦‹ ARGUMENTS πŸ¦‹

  • gnutls_session_t session β€” okay so this one is, like, a gnutls_session_t type. That's it, that's the whole vibe. 🫢
  • gnutls_errno_func errno_func β€” a callback function that's similar to write(). she's giving callback energy fr fr.

πŸ’– DESCRIPTION πŸ’–

Okay so listen. This is the function where you set a function to retrieve errno after a failed push or pull operation. No cap, that's literally the whole job. πŸ”₯

errno_func is of the form,

int (*gnutls_errno_func)(gnutls_transport_ptr_t);

and should return the errno. That's the assignment, bestie, go return that errno. πŸ‘‘


⭐ SINCE ⭐

2.12.0 β€” she's been iconic since way back. vintage queen behavior honestly. πŸ’œ


πŸ™ˆ REPORTING BUGS πŸ™ˆ

Found a bug? Not the moment, but also please tell someone:


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… keep the receipts, okay? That's the rule. πŸŽ€)


🌸 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/

iykyk πŸ’…


And that's the whole page, bestie! This was gnutls version 3.8.13, from the gnutls_transpo..._errno_function(3) manual β€” mwah, periodt. πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from