Subject: Re: Callback for channel data ready

Re: Callback for channel data ready

From: Peter Stuge <>
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.

Received on 2012-03-14