1libssh2_keepalive_config(3) libssh2 libssh2_keepalive_config(3)
2
3
4
6 libssh2_keepalive_config - short function description
7
9 #include <libssh2.h>
10
11 void
12 libssh2_keepalive_config(LIBSSH2_SESSION *session,
13 int want_reply,
14 unsigned interval);
15
17 Set how often keepalive messages should be sent. want_reply indicates
18 whether the keepalive messages should request a response from the
19 server. interval is number of seconds that can pass without any I/O,
20 use 0 (the default) to disable keepalives. To avoid some busy-loop
21 corner-cases, if you specify an interval of 1 it will be treated as 2.
22
23 Note that non-blocking applications are responsible for sending the
24 keepalive messages using libssh2_keepalive_send(3).
25
27 Nothing
28
30 Added in libssh2 1.2.5
31
33 libssh2_keepalive_send(3)
34
35
36
37libssh2 12 Apr 2011 libssh2_keepalive_config(3)