1gnutls_heartbeat_set_timeouts(3) gnutls gnutls_heartbeat_set_timeouts(3)
2
3
4
6 gnutls_heartbeat_set_timeouts - API function
7
9 #include <gnutls/gnutls.h>
10
11 void gnutls_heartbeat_set_timeouts(gnutls_session_t session, unsigned
12 int retrans_timeout, unsigned int total_timeout);
13
15 gnutls_session_t session
16 is a gnutls_session_t structure.
17
18 unsigned int retrans_timeout
19 The time at which a retransmission will occur in millisec‐
20 onds
21
22 unsigned int total_timeout
23 The time at which the connection will be aborted, in mil‐
24 liseconds.
25
27 This function will override the timeouts for the DTLS heartbeat proto‐
28 col. The retransmission timeout is the time after which a message from
29 the peer is not received, the previous request will be retransmitted.
30 The total timeout is the time after which the handshake will be aborted
31 with GNUTLS_E_TIMEDOUT.
32
33 If the retransmission timeout is zero then the handshake will operate
34 in a non-blocking way, i.e., return GNUTLS_E_AGAIN.
35
37 3.1.2
38
40 Report bugs to <bugs@gnutls.org>.
41 Home page: http://www.gnutls.org
42
43
45 Copyright © 2001-2014 Free Software Foundation, Inc..
46 Copying and distribution of this file, with or without modification,
47 are permitted in any medium without royalty provided the copyright
48 notice and this notice are preserved.
49
51 The full documentation for gnutls is maintained as a Texinfo manual.
52 If the /usr/share/doc/gnutls/ directory does not contain the HTML form
53 visit
54
55 http://www.gnutls.org/manual/
56
57gnutls 3.3.29 gnutls_heartbeat_set_timeouts(3)