gnutls_transport_set_ptr(3)

✨ gnutls_transport_set_ptr ✨

okay bestie, welcome to the gnutls manual, section 3 (that's the library-functions girlypop section, iykyk). today's main character is gnutls_transport_set_ptr, and honestly? she's a tiny little function with a big job. let's get into it πŸ’…


🌸 NAME 🌸

gnutls_transport_set_ptr β€” literally just an API function, no notes πŸ’–


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <gnutls/gnutls.h>

void gnutls_transport_set_ptr(gnutls_session_t session,
gnutls_transport_ptr_t ptr);

look at her. two arguments, returns nothing, does her lil thing. periodt ✨


πŸŽ€ ARGUMENTS πŸŽ€

  • gnutls_session_t session β€” bestie, this is a gnutls_session_t type. that's the session we're messing with πŸ’œ
  • gnutls_transport_ptr_t ptr β€” and this one is the value. like, the actual thing you wanna hand over. that's it, that's the whole vibe 🌈

πŸ’– DESCRIPTION πŸ’–

okay so here's the tea β˜• β€” this function sets the first argument of the transport function (that's for the push and pull callbacks, the lil messengers that actually move your bytes around).

and if you're on berkeley style sockets? this function is what sets the connection descriptor. iconic behavior, truly. she's doing the most with the least 🫢

ngl it's a setter. it sets a thing. but it's your thing and she sets it flawlessly πŸ’…

😭 REPORTING BUGS 😭

found a bug? don't suffer in silence bestie, 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.

(translation: take it, share it, remix it, just keep the receipts. slay.)


🌟 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, go visit:

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

like, actually visit it. she's got lore 🌸


and that's the whole page, bestie!! this was gnutls_transport_set_ptr(3) from gnutls 3.8.13 β€” go forth, set your pointers, be the main character of your own transport layer πŸ’–βœ¨πŸŽ€πŸ¦‹πŸ’…πŸ«Ά

πŸ“¦ where this page comes from