Re: Zend resources
| From: | Wez Furlong | Date: | Mon, 12 Sep 2005 01:19:07 +0000 |
| Subject: | Re: Zend resources | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-18786@lists.php.net to get a copy of this message | ||
On 9/11/05, RG <ScriptBlue@nyc.rr.com> 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" <kingwez@gmail.com> wrote in message
> news:4e89b4260509111626ccfcf2b@mail.gmail.com...
> On 9/11/05, RG <ScriptBlue@nyc.rr.com> 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.
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>