Libssh2 channel receive window adjust
From Libssh2
unsigned long libssh2_channel_receive_window_adjust(LIBSSH2_CHANNEL *channel, unsigned long adjustment, unsigned char force);
[edit]
About
Increase the remote end's send window by adjustment bytes. Note that adjustment packets are queued until the size of the adjustment reaches at least LIBSSH2_CHANNEL_MINADJUST bytes in order to reduce network traffic. This method typically does not have to be called by an application as the library implicitly sends windowing packets back to the remote host as bytes are consumed by calls to libssh2_channel_read().
[edit]
Parameters
- channel
- Previously opened channel instance such as returned by libssh2_channel_open_session().
- adjustment
- Number of bytes to increase the remote end's window by.
- force
- When set to a non-zero value, a window adjustment packet will be sent regardless of meeting the LIBSSH2_CHANNEL_MINADJUST quota.
[edit]
Returns
- On Success: 0
- On Failure: -1
