GNUTLS_TRANSPORT_SET_VEC_PUSH_FUNCTION(3)

๐Ÿ’– NAME ๐Ÿ’–

gnutls_transport_set_vec_push_function โ€” okay bestie, this is an API function, and it's the one that lets you take over how gnutls pushes bytes out. It lives in the gnutls manual (section 3, the library-functions girlies), so if you were looking for it under some other name, that's why. ๐Ÿฆ‹


โœจ SYNOPSIS โœจ

#include <gnutls/gnutls.h>

void gnutls_transport_set_vec_push_function(gnutls_session_t session,
                                            gnutls_vec_push_func vec_func);

๐ŸŽ€ ARGUMENTS ๐ŸŽ€

  • gnutls_session_t session โ€” bestie. it's literally a gnutls_session_t type. that's the whole vibe of this argument. ๐Ÿ’…
  • gnutls_vec_push_func vec_func โ€” a callback function, and it's the sibling-coded one, similar to writev(). ๐ŸŒธ

๐Ÿ‘‘ DESCRIPTION ๐Ÿ‘‘

okay so here's the tea: with this function you can override the default writev(2) function that gnutls uses to send data. You're the main character now, you pick how the bytes leave the building. ๐Ÿ’ซ

And listen โ€” setting this callback instead of using gnutls_transport_set_push_function() is recommended, because it introduces less overhead in the TLS handshake process. Less overhead, more slay. โœจ

vec_func is of the form, and I'm gonna write it out exactly so nothing gets twisted:

ssize_t (*gnutls_vec_push_func)
   (gnutls_transport_ptr_t, const giovec_t * iov, int iovcnt);

โญ SINCE โญ

2.12.0 โ€” she's been iconic since 2.12.0, no cap. ๐Ÿซถ


๐Ÿ› REPORTING BUGS ๐Ÿ›

Found a bug? Not me manifesting, but if you did โ€” report bugs to <bugs@gnutls.org>. ๐Ÿ“ฎ

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: yes you can copy it, just keep the receipt. ๐Ÿงพ)


๐ŸŒˆ 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, visit:

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

and that's the whole page, periodt. ๐Ÿ’– this cutie came to you from gnutls 3.8.13, so go forth and push those vectors, you absolute icon. mwah! ๐Ÿ’…โœจ

๐Ÿ“ฆ where this page comes from