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 structure.
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 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
36 Report bugs to <bug-gnutls@gnu.org>. GnuTLS home page:
37 http://www.gnu.org/software/gnutls/ General help using GNU software:
38 http://www.gnu.org/gethelp/
39
41 Copyright © 2008 Free Software Foundation.
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
47 The full documentation for gnutls is maintained as a Texinfo manual.
48 If the info and gnutls programs are properly installed at your site,
49 the command
50
51 info gnutls
52
53 should give you access to the complete manual.
54
55
56
57gnutls 2.8.6 gnutls_transport_set_errno(3)