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 a gnutls_session_t type. 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 Β© 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