1gnutls_record_get_direction(3)      gnutls      gnutls_record_get_direction(3)
2
3
4

NAME

6       gnutls_record_get_direction - API function
7

SYNOPSIS

9       #include <gnutls/gnutls.h>
10
11       int gnutls_record_get_direction(gnutls_session_t session);
12

ARGUMENTS

14       gnutls_session_t session
15                   is a gnutls_session_t type.
16

DESCRIPTION

18       This  function  is  useful  to  determine whether a GnuTLS function was
19       interrupted while sending or receiving, so that select() or poll()  may
20       be called appropriately.
21
22       It  provides information about the internals of the record protocol and
23       is only useful if a prior  gnutls  function  call,  e.g.   gnutls_hand‐
24       shake(),   was   interrupted   and   returned  GNUTLS_E_INTERRUPTED  or
25       GNUTLS_E_AGAIN. After such an interrupt applications may call  select()
26       or poll() before restoring the interrupted GnuTLS function.
27
28       This function's output is unreliable if you are using the same
29        session in different threads, for sending and receiving.
30

RETURNS

32       0  if interrupted while trying to read data, or 1 while trying to write
33       data.
34

REPORTING BUGS

36       Report bugs to <bugs@gnutls.org>.
37       Home page: http://www.gnutls.org
38
39
41       Copyright © 2001-2018 Free Software Foundation, Inc., and others.
42       Copying and distribution of this file, with  or  without  modification,
43       are  permitted  in  any  medium  without royalty provided the copyright
44       notice and this notice are preserved.
45

SEE ALSO

47       The full documentation for gnutls is maintained as  a  Texinfo  manual.
48       If  the /usr/share/doc/gnutls/ directory does not contain the HTML form
49       visit
50
51       http://www.gnutls.org/manual/
52
53gnutls                               3.6.5      gnutls_record_get_direction(3)
Impressum