1gnutls_transport_set_errno(3) gnutls gnutls_transport_set_errno(3)
2
3
4
6 gnutls_transport_set_errno - API function
7
9 #include <gnutls/gnutls.h>
10
11 void gnutls_transport_set_errno(gnutls_session_t session, int err);
12
14 gnutls_session_t session
15 is a gnutls_session_t type.
16
17 int err error value to store in session-specific errno variable.
18
20 Store err in the session-specific errno variable. Useful values for
21 err are EINTR, EAGAIN and EMSGSIZE, other values are treated will be
22 treated as real errors in the push/pull function.
23
24 This function is useful in replacement push and pull functions set by
25 gnutls_transport_set_push_function() and gnutls_trans‐
26 port_set_pull_function() under Windows, where the replacements 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
32 Report bugs to <bugs@gnutls.org>.
33 Home page: http://www.gnutls.org
34
35
37 Copyright © 2001-2018 Free Software Foundation, Inc., and others.
38 Copying and distribution of this file, with or without modification,
39 are permitted in any medium without royalty provided the copyright
40 notice and this notice are preserved.
41
43 The full documentation for gnutls is maintained as a Texinfo manual.
44 If the /usr/share/doc/gnutls/ directory does not contain the HTML form
45 visit
46
47 http://www.gnutls.org/manual/
48
49gnutls 3.6.5 gnutls_transport_set_errno(3)