1
0
mirror of https://github.com/libssh2/libssh2.git synced 2026-10-24 03:48:58 +03:00
Files
libssh2/docs/libssh2_keepalive_send.md
2026-06-01 14:38:31 +02:00

698 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_send 3 libssh2
libssh2_keepalive_config(3)

NAME

libssh2_keepalive_send - short function description

SYNOPSIS

#include <libssh2.h>

int libssh2_keepalive_send(LIBSSH2_SESSION *session,
                           int *seconds_to_next);

DESCRIPTION

Send a keepalive message if needed. seconds_to_next indicates how many seconds you can sleep after this call before you need to call it again.

RETURN VALUE

Returns 0 on success, or LIBSSH2_ERROR_SOCKET_SEND on I/O errors.

AVAILABILITY

Added in libssh2 1.2.5