gnutls_transport_get_ptr2(3)

πŸ’– gnutls_transport_get_ptr2(3) πŸ’–

okay bestie, so this page lives in the gnutls manual and it's literally the getter for your transport function pointers. lowkey iconic. let's go πŸ¦‹


✨ NAME ✨

gnutls_transport_get_ptr2 β€” API function

no cap, that's the whole name. short king. πŸ‘‘


🌸 SYNOPSIS 🌸

#include <gnutls/gnutls.h>

void gnutls_transport_get_ptr2(gnutls_session_t session,
gnutls_transport_ptr_t * recv_ptr, gnutls_transport_ptr_t * send_ptr);

yes she takes a session and two out-params, we love a two-for-one deal πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • gnutls_session_t session β€” bestie this is a gnutls_session_t type. that's it, that's the vibe.
  • gnutls_transport_ptr_t * recv_ptr β€” this pointer is gonna hold the value for the pull function. she's the receiver. 🫢
  • gnutls_transport_ptr_t * send_ptr β€” and this one will hold the value for the push function. the sender. the moment. ✨

πŸ¦‹ DESCRIPTION πŸ¦‹

so the way that this works is: you use this function to get the arguments of the transport functions (like PUSH and PULL). think of it as checking what you already set up.

and btw, those values should have been set using gnutls_transport_set_ptr2(). so if you never called that one, like… girl what are you even doing here 😭 go set them first.

😭 REPORTING BUGS 😭

found a bug? not me gatekeeping the bug report:


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: it's free, just keep the receipts, 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/

and that's the whole page, bestie, you ate. this was gnutls 3.8.13 energy through and through, straight from the gnutls_transport_get_ptr2(3) era β€” go forth and get those pointers πŸ§šβ€β™€οΈβ­πŸ’–

πŸ“¦ where this page comes from