1gnutls_record_recv_packet(3) gnutls gnutls_record_recv_packet(3)
2
3
4
6 gnutls_record_recv_packet - API function
7
9 #include <gnutls/gnutls.h>
10
11 ssize_t gnutls_record_recv_packet(gnutls_session_t session,
12 gnutls_packet_t * packet);
13
15 gnutls_session_t session
16 is a gnutls_session_t structure.
17
18 gnutls_packet_t * packet
19 the structure that will hold the packet data
20
22 This is a lower-level function thatn gnutls_record_recv() and allows to
23 directly receive the whole decrypted packet. That avoids a memory copy,
24 and is mostly applicable to applications seeking high performance.
25
26 The received packet is accessed using gnutls_packet_get() and must be
27 deinitialized using gnutls_packet_deinit(). The returned packet will be
28 NULL if the return value is zero (EOF).
29
31 The number of bytes received and zero on EOF (for stream connections).
32 A negative error code is returned in case of an error.
33
35 3.3.5
36
38 Report bugs to <bugs@gnutls.org>.
39 Home page: http://www.gnutls.org
40
41
43 Copyright © 2001-2014 Free Software Foundation, Inc..
44 Copying and distribution of this file, with or without modification,
45 are permitted in any medium without royalty provided the copyright
46 notice and this notice are preserved.
47
49 The full documentation for gnutls is maintained as a Texinfo manual.
50 If the /usr/share/doc/gnutls/ directory does not contain the HTML form
51 visit
52
53 http://www.gnutls.org/manual/
54
55gnutls 3.3.29 gnutls_record_recv_packet(3)