Please don't top-post, and make sure to quote only what is relevant.
Thanks - this helps save a lot of time for all the readers on the
mailing list.
A. Mark wrote:
> The function to be called while I channel exec...obviously if i
> have to simultaneous channel executing then this function may be
> reentered by both threads.
No need for threads. Yes, you need some kind of data pump for both
channels. Either you could use two threads with a single-channel data
pump (and maybe actually get away with blocking IO, please report if
this works if you decide to try it) or you could use a single thread
using non-blocking IO that takes care of both channels.
//Peter
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2010-01-22