Subject: Re: The problem with multiple channels

Re: The problem with multiple channels

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 3 Jun 2010 19:35:56 +0200 (CEST)

On Thu, 3 Jun 2010, Jose Baars wrote:

>> The function can be called over and over and it will repeatedly
>> return info about what channels that are readable at that moment.
>
> Ideally you would have this event driven, i.e. a channel signal the app that
> something could be read or written in stead of the app polling.

But the app isn't polling here. It gets data back every call. Having the
function do a callback is doable but we don't actually gain anything by that.

libssh2 is fully possible to use event-driven today already and this suggested
addition will only make it better on handling many channels.

-- 
  / daniel.haxx.se
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2010-06-03