libssh2_channel_receive_window_adjust2.3 (1104B)
1.TH libssh2_channel_receive_window_adjust2 3 "26 Mar 2009" "libssh2 1.1" "libssh2" 2.SH NAME 3libssh2_channel_receive_window_adjust2 - adjust the channel window 4.SH SYNOPSIS 5.nf 6#include <libssh2.h> 7 8int 9libssh2_channel_receive_window_adjust2(LIBSSH2_CHANNEL * channel, 10 unsigned long adjustment, 11 unsigned char force, 12 unsigned int *window); 13.fi 14.SH DESCRIPTION 15Adjust the receive window for a channel by adjustment bytes. If the amount to 16be adjusted is less than LIBSSH2_CHANNEL_MINADJUST and force is 0 the 17adjustment amount will be queued for a later packet. 18 19This function stores the new size of the receive window (as understood by 20remote end) in the variable 'window' points to. 21.SH RETURN VALUE 22Return 0 on success and a negative value on error. If used in non-blocking 23mode it will return LIBSSH2_ERROR_EAGAIN when it would otherwise block. 24.SH ERRORS 25.SH AVAILABILITY 26Added in libssh2 1.1 since the previous API has deficiencies. 27.SH SEE ALSO 28.BR libssh2_channel_window_read_ex(3)