libssh2\_channel\_eof(3) libssh2 libssh2\_channel\_eof(3)

# [NAME](#NAME)

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

# [SYNOPSIS](#SYNOPSIS)

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

# [DESCRIPTION](#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](#RETURN_VALUE)

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

# [SEE ALSO](#SEE_ALSO)

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

1 Jun 2007 libssh2 0.15

---

Document: libssh2_channel_eof(3) from libssh2 1.11.1-r10 (Chainguard OS)
Source: https://github.com/libssh2/libssh2.git
