libssh2_channel_wait_closed.3 (754B)
1.TH libssh2_channel_wait_closed 3 "29 Nov 2007" "libssh2 0.19" "libssh2" 2.SH NAME 3libssh2_channel_wait_closed - wait for the remote to close the channel 4.SH SYNOPSIS 5.nf 6#include <libssh2.h> 7 8int 9libssh2_channel_wait_closed(LIBSSH2_CHANNEL *channel); 10.fi 11.SH DESCRIPTION 12Enter a temporary blocking state until the remote host closes the named 13channel. Typically sent after \fIlibssh2_channel_close(3)\fP in order to 14examine the exit status. 15 16.SH RETURN VALUE 17Return 0 on success or negative on failure. It returns LIBSSH2_ERROR_EAGAIN 18when it would otherwise block. While LIBSSH2_ERROR_EAGAIN is a negative 19number, it is not really a failure per se. 20.SH SEE ALSO 21.BR libssh2_channel_send_eof(3) 22.BR libssh2_channel_eof(3) 23.BR libssh2_channel_wait_eof(3)