hi,

this patch against php-5.0.2 adds a stream_socket_create_pair() function. it's nearly identical to socket_create_pair() except it returns streams instead of socket resources.

i'm currently rewriting a sockets daemon framework using streams with the added benefit of ssl and other stream goodies, but when it comes to IPC i have to use both stream_select() and socket_select(), which is quite disturbing and also requires the sockets extensions for something that's not really sockets anyway ...

the patch is here : http://si.kz/~six/stream_socket_create_pair_patch.tgz

i think this one, or at least some way in userspace to cast a socket resource to a stream one would be great.

regards,
Vincent

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to