Libssh2 channel eof

From Libssh2

int libssh2_channel_eof(LIBSSH2_CHANNEL *channel);

About

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

Parameters

  • channel
    Active channel stream to test for EOF status on.

Returns

  • If remote host has set EOF status: 1
  • If remote host has not set EOF status: 0