www.libssh2.org | Daily snapshots | Mailing list archive | Docs | Examples | github

Archive Index This month's Index

Subject: Re: Callback for channel data ready

Re: Callback for channel data ready

From: Peter Stuge <peter_at_stuge.se>
Date: Wed, 14 Mar 2012 23:54:07 +0100

Daniel Stenberg wrote:
>> So we would have to run a libssh2_channel_window_read_ex() loop after each
>> libssh2_channel_read_ex() loop, and repeat both loops until
>> libssh2_channel_window_read_ex() returns zero for all channels.
> I would do it simpler.

See also example/direct_tcpip.c and tcpip-forward.c which I believe
are reliable. Although they only open one channel each. Suggest play
with them to add a second channel.

libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2012-03-14

the libssh2 team