libssh2_channel_send_eof.3 (749B)
1.TH libssh2_channel_send_eof 3 "1 Jun 2007" "libssh2 0.15" "libssh2" 2.SH NAME 3libssh2_channel_send_eof - send EOF to remote server 4.SH SYNOPSIS 5.nf 6#include <libssh2.h> 7 8int 9libssh2_channel_send_eof(LIBSSH2_CHANNEL *channel); 10.fi 11.SH DESCRIPTION 12Tell the remote host that no further data will be sent on the specified 13channel. Processes typically interpret this as a closed stdin descriptor. 14.SH RETURN VALUE 15Return 0 on success or negative on failure. It returns 16LIBSSH2_ERROR_EAGAIN when it would otherwise block. While 17LIBSSH2_ERROR_EAGAIN is a negative number, it is not really a failure per se. 18.SH ERRORS 19\fILIBSSH2_ERROR_SOCKET_SEND\fP - Unable to send data on socket. 20.SH SEE ALSO 21.BR libssh2_channel_wait_eof(3) 22.BR libssh2_channel_eof(3)