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 agnutls_session_ttype, 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 handedgnutls_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:
- Report bugs to <bugs@gnutls.org> π§
- Home page:
https://www.gnutls.orgπ
β COPYRIGHT β
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
- alpine 3.22: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- alpine 3.23: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- alpine 3.24: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- arch rolling: gnutls 3.8.13-3 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 43: gnutls-devel 3.8.13-1.fc43 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 43: gnutls-devel 3.8.13-1.fc43 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 44: gnutls-devel 3.8.13-1.fc44 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 44: gnutls-devel 3.8.13-1.fc44 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- ubuntu stonking: gnutls-doc 3.8.13-1ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms