gnutls_transport_set_int(3)
π gnutls_transport_set_int(3) β the gnutls manual, bestie edition π
okay so you're in the gnutls manual and you landed on gnutls_transport_set_int. slay. let's get into it β¨
πΈ NAME πΈ
gnutls_transport_set_int β it's an API function, periodt.
π SYNOPSIS π
#include <gnutls/gnutls.h>
void gnutls_transport_set_int(gnutls_session_t session, int fd);
look at her. two args, no casts, no drama. iconic π
π¦ ARGUMENTS π¦
gnutls_session_t sessionβ bestie this is agnutls_session_ttype. your session. the main character. πint fdβ the socket descriptor for the connection. the lil number that's holding the whole conversation together fr fr. π
β¨ DESCRIPTION β¨
okay so what does this actually do. it sets the first argument of the transport function β think send() and recv() β for the default callbacks that use the system's socket API. so basically you're telling gnutls "hey, here's the socket, go talk on it" π«Ά
and here's the cute part: this is equivalent to calling gnutls_transport_set_ptr() with the descriptorβ¦ except it requires no casts. same energy, zero casting, no (gnutls_transport_ptr_t) incantations. it's giving convenience. it's giving clean code. we love her ππ
β SINCE β
3.1.9 β she's been here a minute, she's a vet. respect. π
π REPORTING BUGS π
found a bug? not me being the one to tell you but β report bugs to <bugs@gnutls.org>. they wanna hear it, fr.
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.
(translation: go off, share it, just keep the receipts. π§Ύβ¨)
π 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/
like, the real docs are right there, iykyk π
okay that's the whole page, bestie, you ate it π
this was gnutls version 3.8.13 bringing you gnutls_transport_set_int(3), and if you need me i'll be in the group chat explaining transport pointers again. mwah ππΈπ¦
π¦ 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