Libssh2 poll channel read

From Libssh2

int libssh2_poll_channel_read(LIBSSH2_CHANNEL *channel, int extended);

About

Checks to see if data is available in the channel's read buffer. No attempt is made with this method to see if packets are available to be processed. For full polling support, use libssh2_poll().

Parameters

  • channel
    Active channel stream to check read buffers on.
  • extended
    When set to a non-zero value, the extended data stream buffers will be scanned as well. Ordinarily only the normal data substream is checked.

Returns

  • When data is available: 1
  • When data is not available: 0