Subject: Re: Multiple channels and epoll(7)

Re: Multiple channels and epoll(7)

From: Eduardo Silva <edsiper_at_gmail.com>
Date: Tue, 24 Jun 2014 22:28:41 -0600

 of all your channels is not really a problem.
>
>> just to clarify, whats the real difference between a channel and a
>> stream in libssh2 ?
>
> Each channel can be divided into N streams. Each stream is processed
> individually by libssh_channel_read_ex() (without _ex is only a wrapper
> to process stream #0), but windowing is performed on the channel as a
> whole if I am not mistaken.

hmm so if my socket is in an event loop and i get notifications,
besides to walk through my list of active channels, for each one
should i also walk for each stream_id ?, if so, how can i know the
number of streams that a channel is handling ?

regards,
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2014-06-25