Subject: Re: multiple exec

Re: multiple exec

From: A. Mark <gougolith_at_gmail.com>
Date: Thu, 21 Jan 2010 14:01:38 -0800

Can I create multiple channels blocking and non-blocking together on the
same connection ?

On Thu, Jan 21, 2010 at 1:00 PM, Peter Stuge <peter_at_stuge.se> wrote:

> A. Mark wrote:
> > I was wondering what would be the simplest way to execute two
> > commands simultaneously using libssh2.
> ..
> > I'm afraid however that I can't do another channel exec until the
> > previous process has finished and the channel has closed.
>
> The channel may even be destroyed after the exec:ed command returns.
>
> One solution is to simply create many channels. That works just fine.
>
>
> //Peter
> _______________________________________________
> libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
>

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2010-01-21