Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:13304 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 48672 invoked by uid 1010); 13 Oct 2004 00:25:30 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 48632 invoked from network); 13 Oct 2004 00:25:29 -0000 Received: from unknown (HELO t0x.net) (195.68.251.133) by pb1.pair.com with SMTP; 13 Oct 2004 00:25:29 -0000 Received: from t0x.net (null@six [10.0.0.106]) by t0x.net (8.13.1/8.13.1/Debian-15) with ESMTP id i9D0PSDf005140 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 13 Oct 2004 02:25:28 +0200 Message-ID: <416C7873.9070602@t0x.net> Date: Wed, 13 Oct 2004 02:36:03 +0200 User-Agent: Googlebot/2.1 (+http://www.googlebot.com/bot.html) X-Accept-Language: fr, en-us, en MIME-Version: 1.0 To: internals@lists.php.net Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: [PATCH] new function stream_socket_create_pair From: six@t0x.net (six) 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