Subject: Callback for channel data ready

Callback for channel data ready

From: Mitchell Hashimoto <mitchell.hashimoto_at_gmail.com>
Date: Tue, 28 Feb 2012 23:03:44 -0800

Hi,

I've just started using libssh2 and so far the API and documentation has
been fantastic, so thank you very much for that.

I have a simple question: If I have multiple channels on top of a session
that sent out an `exec`, how do I know when data is ready on each of them?
I can use select() on my socket, which tells me when data is ready to be
read in general, but how do I know which channel to read on?

Of course I could iterate through each channel and do a channel_read() but
I was hoping perhaps there was a better way?

Thanks!
Mitchell

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2012-02-29