Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:18783 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 20998 invoked by uid 1010); 11 Sep 2005 23:26:35 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 20983 invoked from network); 11 Sep 2005 23:26:35 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Sep 2005 23:26:35 -0000 X-Host-Fingerprint: 64.233.184.196 wproxy.gmail.com Linux 2.4/2.6 Received: from ([64.233.184.196:7340] helo=wproxy.gmail.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id F9/B8-27924-A2DB4234 for ; Sun, 11 Sep 2005 19:26:34 -0400 Received: by wproxy.gmail.com with SMTP id i22so1362169wra for ; Sun, 11 Sep 2005 16:26:31 -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:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Xcgn1W14bHFLIbB4L9GlLQi8j28kj/g63e7M5pFbkArtCuxnpQzsDNCCE7z5qdLCmM3EWMKI9I8wI4ZLPUsXcixMOMAJlfRP3SlN/335ATlHcdA9ph8eHG3tA5mEjUha8J3Nz/cWAo1f9XW1ziGXtz/q72VZ2Axy0nKc9wV0a0U= Received: by 10.54.51.36 with SMTP id y36mr1279914wry; Sun, 11 Sep 2005 16:26:31 -0700 (PDT) Received: by 10.54.76.6 with HTTP; Sun, 11 Sep 2005 16:26:31 -0700 (PDT) Message-ID: <4e89b4260509111626ccfcf2b@mail.gmail.com> Date: Sun, 11 Sep 2005 19:26:31 -0400 Reply-To: kingwez@gmail.com To: RG , internals In-Reply-To: <000e01c5b720$59856cc0$6401a8c0@p4> 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> Subject: Re: [PHP-DEV] Zend resources From: kingwez@gmail.com (Wez Furlong) 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.