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 agnutls_session_ttype. 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 towritev(). ๐ธ
๐ 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 ๐
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
- 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