1gnutls_record_recv_packet(3)        gnutls        gnutls_record_recv_packet(3)
2
3
4

NAME

6       gnutls_record_recv_packet - API function
7

SYNOPSIS

9       #include <gnutls/gnutls.h>
10
11       ssize_t       gnutls_record_recv_packet(gnutls_session_t       session,
12       gnutls_packet_t * packet);
13

ARGUMENTS

15       gnutls_session_t session
16                   is a gnutls_session_t type.
17
18       gnutls_packet_t * packet
19                   the structure that will hold the packet data
20

DESCRIPTION

22       This is a lower-level function than gnutls_record_recv() and allows  to
23       directly receive the whole decrypted packet. That avoids a memory copy,
24       and is intended to be used by 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

RETURNS

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

SINCE

35       3.3.5
36

REPORTING BUGS

38       Report bugs to <bugs@gnutls.org>.
39       Home page: https://www.gnutls.org
40
41
43       Copyright © 2001-2019 Free Software Foundation, Inc., and others.
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

SEE ALSO

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       https://www.gnutls.org/manual/
54
55gnutls                               3.6.8        gnutls_record_recv_packet(3)
Impressum