libssh2_keepalive_send man page

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

See Also

libssh2_keepalive_config(3)

Referenced By

libssh2_keepalive_config(3).

13 Apr 2011 libssh2 1.2.5 libssh2 manual