gnutls_transport_set_ptr2(3)

✨ gnutls_transport_set_ptr2(3) ✨

okay bestie, welcome to the gnutls manual πŸ’– this is the page for gnutls_transport_set_ptr2, and it's giving "I have two pointers and I'm not afraid to use them" πŸ‘‘


🌸 NAME 🌸

gnutls_transport_set_ptr2 β€” API function πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <gnutls/gnutls.h>

void gnutls_transport_set_ptr2(gnutls_session_t session,
gnutls_transport_ptr_t recv_ptr, gnutls_transport_ptr_t send_ptr);

no cap, that's the whole signature 🫢


πŸŽ€ ARGUMENTS πŸŽ€

  • gnutls_session_t session β€” it's a gnutls_session_t type, that's the vibe. the main character of the operation ✨
  • gnutls_transport_ptr_t recv_ptr β€” the value for the pull function 🌈 like, the pointer your receiving side is gonna get handed
  • gnutls_transport_ptr_t send_ptr β€” the value for the push function πŸ’Œ same deal but for the sending side

πŸ’œ DESCRIPTION πŸ’œ

so what does it do? it sets the first argument of the transport function β€” and that's for both the push and pull callbacks, bestie 🫢

if you're living that berkeley style sockets life, this function will set the connection descriptor πŸ”₯

and here's the iconic part: with this function you can use two different pointers for receiving and sending πŸ‘‘ that's literally the whole point. one for recv, one for send. slay.


😭 REPORTING BUGS 😭

found a bug? not me being the bearer of bad news but pls tell the devs:


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. πŸ’– (yes bestie, that's the whole license blurb, it's very chill of them)


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

go read it, it's giving comprehensive 🧚


and that's the page!! this one came from gnutls version 3.8.13 πŸ’… stay hydrated, close your file descriptors, and remember: two pointers, zero problems βœ¨πŸ¦‹πŸ’–

πŸ“¦ where this page comes from