gnutls_record_recv_packet(3)
π gnutls_record_recv_packet(3) π
okay bestie, welcome to the gnutls manual β this page is literally the gnutls_record_recv_packet API function and it's giving high-performance networking energy β¨
πΈ NAME πΈ
gnutls_record_recv_packet β API function. that's it, that's the name, short and iconic π
β¨ SYNOPSIS β¨
#include <gnutls/gnutls.h>
ssize_t gnutls_record_recv_packet(gnutls_session_t session,
gnutls_packet_t * packet);
look at her. two args, one ssize_t return, no drama π
π¦ ARGUMENTS π¦
gnutls_session_t sessionβ bestie this is agnutls_session_ttype. that's the whole vibe. your session, your rules πgnutls_packet_t * packetβ the structure that's gonna hold the packet data. it's the little container where your packet goes π«Ά
π DESCRIPTION π
so. this is a lower-level function than gnutls_record_recv() and β hear me out β it lets you directly receive the whole decrypted packet. the way that it avoids a memory copy?? no cap, that's the entire point. it's intended to be used by applications seeking high performance π₯
the received packet is accessed using gnutls_packet_get() and must be deinitialized using gnutls_packet_deinit(). like, please deinit her, she deserves closure π
also: the returned packet will be NULL if the return value is zero (EOF). EOF means end of file, bestie, the packet is simply not there π
β RETURNS β
- the number of bytes received π
- zero on EOF (for stream connections)
- a negative error code in case of an error π
π SINCE π
3.3.5 β she's been around a minute, a true veteran π
π REPORTING BUGS π
found a bug? don't be shy, tell the girlies:
- 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. (yes bestie, that's the actual legal text, keep it, it's the rule π«Ά)
π 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/
and that's the page!! this was gnutls version 3.8.13, page gnutls_record_recv_packet(3), brought to you by the gnutls project. mwah, go write some high-performance code bestie πβ¨ππ¦
π¦ 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