Libssh2 channel window read ex

From Libssh2

unsigned long libssh2_channel_window_read_ex(
              LIBSSH2_CHANNEL *channel, unsigned long *read_avail,
              unsigned long *window_size_initial);
#define libssh2_channel_window_read(channel) \
        libssh2_channel_window_read_ex((channel), NULL, NULL)

About

Returns the number of bytes which the remote end may send without overflowing the window limit.

Parameters

  • channel
    Previously opened channel instance such as returned by libssh2_channel_open_session().
  • read_avail
    Optional pointer which, when passed, will be populated with the total number of bytes currently buffered by the channel waiting to be read by libssh2_channel_read(). Note that this total includes both standard data and extended data.
  • window_size_initial
    Optional pointer which, when passed, will be populated with the original size of the receive window in bytes.

Returns

  • Number of bytes which the remote end may send without overflowing the window limit