gnutls_transport_get_int(3)

πŸ’– gnutls_transport_get_int(3) πŸ’–

okay bestie, so this one lives in the gnutls manual, and it's genuinely one of the cutest tiny functions ever. no cap. it's called gnutls_transport_get_int and it's an API function, periodt. ✨


✨ SYNOPSIS ✨

#include <gnutls/gnutls.h>

int gnutls_transport_get_int(gnutls_session_t session);

like, that's the whole thing. one include, one function, one vibe. πŸŽ€


🌸 ARGUMENTS 🌸

  • gnutls_session_t session β€” bestie this is literally just a gnutls_session_t type. that's it. that's the argument. πŸ’…

πŸ¦‹ DESCRIPTION πŸ¦‹

so what does it do?? it's used to get the first argument of the transport function β€” you know, the ones like PUSH and PULL. 🫢

and like, important detail: that value must have been set using gnutls_transport_set_int(). so it's not just vibing there on its own, somebody had to put it there first. it's giving "you have to set it before you get it." iconic honestly. 😭


⭐ RETURNS ⭐

it returns the first argument of the transport function. that's the whole return value. no plot twist. 🌈


πŸ’œ SINCE πŸ’œ

3.1.9 β€” so it's been around a minute, it's not new new. main character energy since day one basically. πŸ‘‘


πŸ™ˆ REPORTING BUGS πŸ™ˆ

found something cursed?? report bugs to <bugs@gnutls.org>. πŸ›

home page is right here: 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. so like, go off, share it, remix it, just keep the receipts. 🫑


🌈 SEE ALSO 🌈

the full documentation for gnutls is maintained as a Texinfo manual. so if the /usr/share/doc/gnutls/ directory does not contain the HTML form, bestie you gotta go visit:

https://www.gnutls.org/manual/

that's where the whole lore lives. iykyk. 🧚


πŸ’€ lowkey reminder: this is the getter. the setter is a whole separate function. don't mix them up, bestie, or your transport args will be giving absolutely nothing. 😭

that's the page!! it's from gnutls 3.8.13, and it's gnutls_transport_get_int(3) forever and always. mwah. πŸ’–βœ¨πŸŽ€πŸ¦‹πŸŒΈπŸ’…πŸ«Ά

πŸ“¦ where this page comes from