[PATCH] new function stream_socket_create_pair

From: Date: Wed, 13 Oct 2004 00:36:03 +0000
Subject: [PATCH] new function stream_socket_create_pair
Groups: php.internals 
Request: Send a blank email to internals+get-13304@lists.php.net to get a copy of this message
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

« previous php.internals (#13304) next »