---
name: "libssh2_poll_channel_read"
section: "3"
platform: "linux"
package: "libssh2"
version: "1.11.1-7"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/libssh2_poll_channel_read"
---

# libssh2\_poll\_channel\_read(3)

check if data is available

## NAME

libssh2\_poll\_channel\_read - check if data is available

## SYNOPSIS

```
#include <libssh2.h>
int
libssh2_poll_channel_read(LIBSSH2_CHANNEL *channel, int extended);
```

## DESCRIPTION

This function is deprecated. Do note use.

*[libssh2\_poll\_channel\_read(3)](/libssh2_poll_channel_read/3.md)* 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(3)](/libssh2_poll/3.md)*.

## RETURN VALUE

Returns 1 when data is available and 0 otherwise.

## SEE ALSO

**[libssh2\_poll(3)](/libssh2_poll/3.md)**
