1
0
mirror of https://github.com/libssh2/libssh2.git synced 2026-10-24 03:48:58 +03:00
Files
libssh2/docs/libssh2_keepalive_config.md
Viktor Szakats 9538c99fc4 badwords: add checker script, fix issues found
Checker script and wordlist comes from curl.

Also:
- checksrc.pl: sync up with curl.
- unfold an IETF URL.
- update all IETF URLs where missing.

Closes #1959
2026-06-01 13:22:40 +02:00

1009 B

c, SPDX-License-Identifier, Title, Section, Source, See-also
c SPDX-License-Identifier Title Section Source See-also
Copyright (C) The libssh2 project and its contributors. BSD-3-Clause libssh2_keepalive_config 3 libssh2
libssh2_keepalive_send(3)

NAME

libssh2_keepalive_config - short function description

SYNOPSIS

#include <libssh2.h>

void
libssh2_keepalive_config(LIBSSH2_SESSION *session,
                         int want_reply,
                         unsigned int interval);

DESCRIPTION

Set how often keepalive messages should be sent. want_reply indicates whether the keepalive messages should request a response from the server. interval is number of seconds that can pass without any I/O, use 0 (the default) to disable keepalives. To avoid some busy-loop corner-cases, if you specify an interval of 1 it is treated as 2.

Note that non-blocking applications are responsible for sending the keepalive messages using libssh2_keepalive_send(3).

RETURN VALUE

Nothing

AVAILABILITY

Added in libssh2 1.2.5