1gnutls_transport_set_pull_timeout_gfnuungtcnltusit_oltnsr(a3n)sport_set_pull_timeout_function(3)
2
3
4

NAME

6       gnutls_transport_set_pull_timeout_function - API function
7

SYNOPSIS

9       #include <gnutls/gnutls.h>
10
11       void  gnutls_transport_set_pull_timeout_function(gnutls_session_t  ses‐
12       sion, gnutls_pull_timeout_func func);
13

ARGUMENTS

15       gnutls_session_t session
16                   is a gnutls_session_t structure.
17
18       gnutls_pull_timeout_func func
19                   a callback function
20

DESCRIPTION

22       This is the function where you  set  a  function  for  gnutls  to  know
23       whether  data are ready to be received. It should wait for data a given
24       time frame in milliseconds. The callback should return 0 on timeout,  a
25       positive  number if data can be received, and -1 on error.  You'll need
26       to override this function if select() is not suitable for the  provided
27       transport calls.
28
29       As  with  select(),  if  the  timeout value is zero the callback should
30       return zero if no data are immediately available.
31
32        gnutls_pull_timeout_func  is  of  the  form,  int  (*gnutls_pull_time‐
33       out_func)(gnutls_transport_ptr_t, unsigned int ms);
34

SINCE

36       3.0
37

REPORTING BUGS

39       Report bugs to <bugs@gnutls.org>.
40       Home page: http://www.gnutls.org
41
42
44       Copyright © 2001-2014 Free Software Foundation, Inc..
45       Copying  and  distribution  of this file, with or without modification,
46       are permitted in any medium  without  royalty  provided  the  copyright
47       notice and this notice are preserved.
48

SEE ALSO

50       The  full  documentation  for gnutls is maintained as a Texinfo manual.
51       If the /usr/share/doc/gnutls/ directory does not contain the HTML  form
52       visit
53
54       http://www.gnutls.org/manual/
55
56gnutls                           gnu3t.l3s._2t9ransport_set_pull_timeout_function(3)
Impressum