Libssh2 channel send eof

From Libssh2

int libssh2_channel_send_eof(LIBSSH2_CHANNEL *channel);

About

Tell the remote host that no further data will be sent on the specified channel. Processes typically interpret this as a closed stdin descriptor.

Parameters

  • channel
    Active channel stream to set EOF status on.

Returns

  • On Success: 0
  • On Failure: -1