libssh2_channel_eof(3)

libssh2_channel_eof3

Check a channel's eof status

Usage

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

Overview

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.

Releases

10 releases since Debian 5.0 (Lenny); the text changed 3 times.

  1. 5.0
  2. 6.0
  3. 7–12
  4. 13–Arch

From libssh2 1.11.1-7 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.