1gnutls_record_recv(3)               gnutls               gnutls_record_recv(3)
2
3
4

NAME

6       gnutls_record_recv - reads data from the TLS record protocol
7

SYNOPSIS

9       #include <gnutls/gnutls.h>
10
11       ssize_t   gnutls_record_recv(gnutls_session_t  session,  void  *  data,
12       size_t sizeofdata);
13

ARGUMENTS

15       gnutls_session_t session
16                   is a gnutls_session_t structure.
17
18       void * data the buffer that the data will be read into
19
20       size_t sizeofdata
21                   the number of requested bytes
22

DESCRIPTION

24       This function has the similar semantics with recv(). The  only  differ‐
25       ence  is  that  is  accepts  a GNUTLS session, and uses different error
26       codes.
27
28       In the special case that a server requests a renegotiation, the  client
29       may receive an error code of GNUTLS_E_REHANDSHAKE.  This message may be
30       simply ignored, replied with an alert containing  NO_RENEGOTIATION,  or
31       replied with a new handshake, depending on the client's will.
32
33       If  EINTR  is  returned  by  the internal push function (the default is
34       code{recv()})  then   GNUTLS_E_INTERRUPTED   will   be   returned.   If
35       GNUTLS_E_INTERRUPTED  or GNUTLS_E_AGAIN is returned, you must call this
36       function again to get the data.  See also code{gnutls_record_get_direc‐
37       tion()}.
38
39       A server may also receive GNUTLS_E_REHANDSHAKE when a client has initi‐
40       ated a handshake. In that case the server can only initiate a handshake
41       or terminate the connection.
42
43       Returns the number of bytes received and zero on EOF.  A negative error
44       code is returned in case of an error.  The  number  of  bytes  received
45       might be less than code{count}.
46

REPORTING BUGS

48       Report bugs to <bug-gnutls@gnu.org>.
49
51       Copyright © 2006 Free Software Foundation.
52       Permission  is  granted  to make and distribute verbatim copies of this
53       manual provided the copyright notice and  this  permission  notice  are
54       preserved on all copies.
55

SEE ALSO

57       The  full  documentation  for gnutls is maintained as a Texinfo manual.
58       If the info and gnutls programs are properly installed  at  your  site,
59       the command
60
61              info gnutls
62
63       should give you access to the complete manual.
64
65
66
67gnutls                               1.6.3               gnutls_record_recv(3)
Impressum