---
name: "libssh2_channel_eof"
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_channel_eof"
---

# libssh2\_channel\_eof(3)

check a channel's EOF status

## NAME

libssh2\_channel\_eof - check a channel's EOF status

## SYNOPSIS

```
#include <libssh2.h>
int
libssh2_channel_eof(LIBSSH2_CHANNEL *channel);
```

## DESCRIPTION

*channel* - active channel stream to set closed status on.

Check if the remote host has sent an EOF status for the selected stream.

## RETURN VALUE

Returns 1 if the remote host has sent EOF, otherwise 0. Negative on failure.

## SEE ALSO

**[libssh2\_channel\_close(3)](/libssh2_channel_close/3.md)**
