1libssh2_channel_wait_closed(3) libssh2 libssh2_channel_wait_closed(3)
2
3
4
6 libssh2_channel_wait_closed - wait for the remote to close the channel
7
9 #include <libssh2.h>
10
11 int
12 libssh2_channel_wait_closed(LIBSSH2_CHANNEL *channel);
13
15 Enter a temporary blocking state until the remote host closes the named
16 channel. Typically sent after libssh2_channel_close(3) in order to ex‐
17 amine the exit status.
18
19
21 Return 0 on success or negative on failure. It returns LIBSSH2_ER‐
22 ROR_EAGAIN when it would otherwise block. While LIBSSH2_ERROR_EAGAIN is
23 a negative number, it is not really a failure per se.
24
26 libssh2_channel_send_eof(3) libssh2_channel_eof(3) libssh2_chan‐
27 nel_wait_eof(3)
28
29
30
31libssh2 0.19 29 Nov 2007 libssh2_channel_wait_closed(3)