1gnutls_transport_set_pull_function(3)gnutlsgnutls_transport_set_pull_function(3)
2
3
4
6 gnutls_transport_set_pull_function - API function
7
9 #include <gnutls/gnutls.h>
10
11 void gnutls_transport_set_pull_function(gnutls_session_t session,
12 gnutls_pull_func pull_func);
13
15 gnutls_session_t session
16 is a gnutls_session_t structure.
17
18 gnutls_pull_func pull_func
19 a callback function similar to read()
20
22 This is the function where you set a function for gnutls to receive
23 data. Normally, if you use berkeley style sockets, do not need to use
24 this function since the default (recv(2)) will probably be ok.
25
26 PULL_FUNC is of the form, ssize_t (*gnutls_pull_func)(gnutls_trans‐
27 port_ptr_t, void*, size_t);
28
30 Report bugs to <bug-gnutls@gnu.org>. GnuTLS home page:
31 http://www.gnu.org/software/gnutls/ General help using GNU software:
32 http://www.gnu.org/gethelp/
33
35 Copyright © 2008 Free Software Foundation.
36 Copying and distribution of this file, with or without modification,
37 are permitted in any medium without royalty provided the copyright
38 notice and this notice are preserved.
39
41 The full documentation for gnutls is maintained as a Texinfo manual.
42 If the info and gnutls programs are properly installed at your site,
43 the command
44
45 info gnutls
46
47 should give you access to the complete manual.
48
49
50
51gnutls 2.12.6.g1nutls_transport_set_pull_function(3)