Hi, Le samedi 05 décembre 2009 à 00:01 +0100, Samuel ROZE a écrit : > Hello, > > I'm working on the use of a PHP SSH2 Stream returned by ssh2_shell > function with stream_select() function. Within the PHP code, before > being used into the select() C function, a stream have to be "casted"... > The problem is that I don't really know what is it and how it generally > works. > > So, can someone explain to me what means "cast" and "seek" streams ? > > (In fact, I have to cast a php_ssh2_channel_stream)
Here you need to return the underlaying socket on which the ssh session is established, so that the OS's select() can work on it. Look at php_openssl_sockop_cast for an example. Regards, Arnaud > > Thanks a lot. > Regards, > Samuel ROZE. > > > -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php