libssh2_keepalive_send(3)

libssh2_keepalive_send3

Short function description

Usage

#include <libssh2.h>
int
libssh2_keepalive_send(LIBSSH2_SESSION *session,
                       int *seconds_to_next);

Overview

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.

Releases

8 releases since Debian 7 (Wheezy); the text changed 1 time.

  1. 7–12
  2. 13–Arch

Availability

Added in libssh2 1.2.5

From libssh2 1.11.1-7 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.