Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:18786 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 63049 invoked by uid 1010); 12 Sep 2005 01:19:10 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 63034 invoked from network); 12 Sep 2005 01:19:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Sep 2005 01:19:10 -0000 X-Host-Fingerprint: 64.233.184.197 wproxy.gmail.com Linux 2.4/2.6 Received: from ([64.233.184.197:38087] helo=wproxy.gmail.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id AB/EB-27924-E87D4234 for ; Sun, 11 Sep 2005 21:19:10 -0400 Received: by wproxy.gmail.com with SMTP id i21so1511733wra for ; Sun, 11 Sep 2005 18:19:07 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=B64emYtfuhTPYWwhNOoKVccoS6RcfPCEMitNbGn677KpYAuyw/BnUFGBMfa7jalhOuNFLOWUYlNDJ/0GOO7CQBAA9heAzEdYNi/JZ1GxunTHRrswKv0Dip/of1gYSxibmwnzHNrqdw8qXLaAYTJsKQza9IOnYQpKAIv0V02BAqM= Received: by 10.54.100.11 with SMTP id x11mr2142153wrb; Sun, 11 Sep 2005 18:19:07 -0700 (PDT) Received: by 10.54.76.6 with HTTP; Sun, 11 Sep 2005 18:19:07 -0700 (PDT) Message-ID: <4e89b426050911181937c4d904@mail.gmail.com> Date: Sun, 11 Sep 2005 21:19:07 -0400 Reply-To: kingwez@gmail.com To: RG Cc: internals@lists.php.net In-Reply-To: <41.A9.27924.033C4234@pb1.pair.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <4e89b426050911135030c1aebe@mail.gmail.com> <000e01c5b720$59856cc0$6401a8c0@p4> <4e89b4260509111626ccfcf2b@mail.gmail.com> <41.A9.27924.033C4234@pb1.pair.com> Subject: Re: [PHP-DEV] Zend resources From: kingwez@gmail.com (Wez Furlong) On 9/11/05, RG wrote: > Yeah I have seen those functions, but they are quite bloated in my opnion= . Maybe so, but at least they work :) > Is there any way of getting the resource id without modifying sockets? Nope. --Wez. > "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. >=20 > Have you seen stream_socket_server(), stream_socket_accept(), > stream_socket_get_name() and stream_socket_client() in PHP 5? >=20 > > By the way, what function should give me the list id? > > zend_list_find() or something similar? >=20 > 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. >=20 > --Wez. >=20 > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php >=20 >