GNUTLS_TRANSPORT_SET_PULL_FUNCTION(3)
π gnutls_transport_set_pull_function β API function π
okay bestie, welcome to the gnutls manual, you're gonna eat this up β¨
πΈ NAME πΈ
gnutls_transport_set_pull_function β it's an API function, bestie. that's the whole vibe. π
π SYNOPSIS π
#include <gnutls/gnutls.h>
void gnutls_transport_set_pull_function(gnutls_session_t session,
gnutls_pull_func pull_func);
π¦ ARGUMENTS π¦
gnutls_session_t sessionβ this one is agnutls_session_ttype. that's it, that's the whole description, no cap π«Άgnutls_pull_func pull_funcβ a callback function that's giving majorread()energy, iykyk π
β¨ DESCRIPTION β¨
so like, this is the function where you set a function for gnutls to receive data. π§
ngl, if you're using berkeley style sockets, you do not need to use this function, because the default recv(2) will probably be ok. like, it just works, bestie. π
but if you <em>do</em> write your own callback, here's the tea on what it has to return:
0β connection termination, we're done here π- a positive number β that's the number of bytes received, slay π
-1β error. it's giving tragedy π
and here's the shape of gnutls_pull_func, exactly as written, no edits:
ssize_t
(*gnutls_pull_func)(gnutls_transport_ptr_t, void*, size_t);
periodt. π
π₯ REPORTING BUGS π₯
found a bug? not you being a detective π΅οΈββοΈ report it to <bugs@gnutls.org>.
home page is right here: 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. iconic behavior, honestly. π
β 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/
fr fr, don't skip the docs bestie, they're lowkey the main character. π
that's the whole page! this was gnutls 3.8.13, brought to you with love, sparkles, and a little bit of -1 on error energy. stay hydrated, read your manpages, 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