Re: Stream: Cast and Seek

From: Date: Sat, 05 Dec 2009 12:40:56 +0000
Subject: Re: Stream: Cast and Seek
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-46285@lists.php.net to get a copy of this message
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. > > >

« previous php.internals (#46285) next »