1gnutls_transport_set_errno(3)       gnutls       gnutls_transport_set_errno(3)
2
3
4

NAME

6       gnutls_transport_set_errno - API function
7

SYNOPSIS

9       #include <gnutls/gnutls.h>
10
11       void gnutls_transport_set_errno(gnutls_session_t session, int err);
12

ARGUMENTS

14       gnutls_session_t session
15                   is a gnutls_session_t structure.
16
17       int err     error value to store in session-specific errno variable.
18

DESCRIPTION

20       Store  err  in  the session-specific errno variable.  Useful values for
21       err is EAGAIN and EINTR, other values are treated will  be  treated  as
22       real errors in the push/pull function.
23
24       This  function  is  useful  in  replacement  push/pull functions set by
25       gnutls_transport_set_push_function    and    gnutls_transport_set_pull‐
26       push_function  under  Windows,  where the replacement push/pull may not
27       have access to the same errno variable that is used  by  GnuTLS  (e.g.,
28       the  application  is  linked  to  msvcr71.dll  and  gnutls is linked to
29       msvcrt.dll).
30
31       If you don't have the  session  variable  easily  accessible  from  the
32       push/pull  function,  and  don't  worry about thread conflicts, you can
33       also use gnutls_transport_set_global_errno().
34

REPORTING BUGS

36       Report bugs to <bug-gnutls@gnu.org>.
37
39       Copyright © 2006 Free Software Foundation.
40       Permission is granted to make and distribute verbatim  copies  of  this
41       manual  provided  the  copyright  notice and this permission notice are
42       preserved on all copies.
43

SEE ALSO

45       The full documentation for gnutls is maintained as  a  Texinfo  manual.
46       If  the  info  and gnutls programs are properly installed at your site,
47       the command
48
49              info gnutls
50
51       should give you access to the complete manual.
52
53
54
55gnutls                               1.6.3       gnutls_transport_set_errno(3)
Impressum