1
.\" DO NOT MODIFY THIS FILE! It was generated by gdoc.
2
.TH "gnutls_transport_set_pull_timeout_function" 3 "3.0.9" "gnutls" "gnutls"
4
gnutls_transport_set_pull_timeout_function \- API function
6
.B #include <gnutls/gnutls.h>
8
.BI "void gnutls_transport_set_pull_timeout_function(gnutls_session_t " session ", gnutls_pull_timeout_func " func ");"
10
.IP "gnutls_session_t session" 12
11
is a \fBgnutls_session_t\fP structure.
12
.IP "gnutls_pull_timeout_func func" 12
15
This is the function where you set a function for gnutls to know
16
whether data are ready to be received. It should wait for data a
17
given time frame in milliseconds. The callback should return 0 on
18
timeout, a positive number if data can be received, and \-1 on error.
19
You'll need to override this function if \fBselect()\fP is not suitable
20
for the provided transport calls.
21
The callback function is used in DTLS only.
23
\fIgnutls_pull_timeout_func\fPis of the form,
24
ssize_t (*gnutls_pull_timeout_func)(gnutls_transport_ptr_t, unsigned int ms);
28
Report bugs to <bug-gnutls@gnu.org>.
29
GnuTLS home page: http://www.gnu.org/software/gnutls/
30
General help using GNU software: http://www.gnu.org/gethelp/
32
Copyright \(co 2011 Free Software Foundation.
34
Copying and distribution of this file, with or without modification,
35
are permitted in any medium without royalty provided the copyright
36
notice and this notice are preserved.
38
The full documentation for
40
is maintained as a Texinfo manual. If the
44
programs are properly installed at your site, the command
48
should give you access to the complete manual.