Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:18784 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 32258 invoked by uid 1010); 11 Sep 2005 23:52:16 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 32243 invoked from network); 11 Sep 2005 23:52:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Sep 2005 23:52:16 -0000 X-Host-Fingerprint: 66.108.229.165 cpe-66-108-229-165.nyc.res.rr.com Received: from ([66.108.229.165:21149] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 41/A9-27924-033C4234 for ; Sun, 11 Sep 2005 19:52:16 -0400 Message-ID: <41.A9.27924.033C4234@pb1.pair.com> To: internals@lists.php.net Reply-To: "RG" References: <4e89b426050911135030c1aebe@mail.gmail.com><000e01c5b720$59856cc0$6401a8c0@p4> <4e89b4260509111626ccfcf2b@mail.gmail.com> Date: Sun, 11 Sep 2005 19:48:39 -0400 Lines: 23 Organization: blah X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Posted-By: 66.108.229.165 Subject: Re: [PHP-DEV] Zend resources From: ScriptBlue@nyc.rr.com ("RG") Yeah I have seen those functions, but they are quite bloated in my opnion. Is there any way of getting the resource id without modifying sockets? "Wez Furlong" wrote in message news:4e89b4260509111626ccfcf2b@mail.gmail.com... On 9/11/05, RG wrote: > Well, I've improved the socket_accept and socket_connect functions and I've > name them socketi_*. socketi_accept returns the IP as well as the port > number, and socket_connect has a timeout function. Have you seen stream_socket_server(), stream_socket_accept(), stream_socket_get_name() and stream_socket_client() in PHP 5? > By the way, what function should give me the list id? > zend_list_find() or something similar? The sockets extension would need to provide a new function that returns the value of le_socket, which you'd then use in the same way that the sockets extension does. --Wez.