Re: SSH2: An SSH shell like a stream
| From: | Samuel ROZE | Date: | Wed, 02 Dec 2009 19:13:25 +0000 |
| Subject: | Re: SSH2: An SSH shell like a stream | ||
| References: | 1 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-6877@lists.php.net to get a copy of this message | ||
Nobody knows how I can use the C's function "select" with an SSH2
stream ?
Thanks,
Samuel ROZE.
Le mardi 01 décembre 2009 à 22:29 +0100, Samuel ROZE a écrit :
> Hi,
>
> In the description of ssh2_shell, there's:
> "Open a shell at the remote end and allocate a stream for it."
>
> So the result of this command must be a stream. Well, it's good, I'll
> use fgets, fwrite and stream_* functions ! BUT, the problem is that I
> can't use a SSH2 Stream with the stream_select function...
>
> Warning: stream_select() [function.stream-select]: cannot represent a
> stream of type SSH2 Channel as a select()able descriptor in XX on line
> XX
>
> Why I cannot ? Is there a workaround ?
>
> Regards,
> Samuel ROZE.
>
>