1 .\" $Id: libssh2_channel_flush_ex.3,v 1.1 2007/06/13 19:53:09 jehousley Exp $
3 .TH libssh2_channel_flush_ex 3 "1 Jun 2007" "libssh2 0.15" "libssh2 manual"
5 libssh2_channel_flush_ex - flush a channel
10 libssh2_channel_flush_ex(LIBSSH2_CHANNEL *channel, int streamid);
13 libssh2_channel_flush(LIBSSH2_CHANNEL *channel);
16 libssh2_channel_flush_stderr(LIBSSH2_CHANNEL *channel);
19 \fIchannel\fP - Active channel stream to flush.
21 \fIstreamid\fP - Specific substream number to flush. Groups of substreams may
22 be flushed by passing on of the following Constants.
24 \fBLIBSSH2_CHANNEL_FLUSH_EXTENDED_DATA\fP: Flush all extended data substreams
26 \fBLIBSSH2_CHANNEL_FLUSH_ALL\fP: Flush all substreams
28 Flush the read buffer for a given channel instance. Individual substreams may
29 be flushed by number or using one of the provided macros.
32 Return 0 on success or negative on failure. It returns
33 LIBSSH2_ERROR_EAGAIN when it would otherwise block. While
34 LIBSSH2_ERROR_EAGAIN is a negative number, it isn't really a failure per se.