Re: Zend resources
| From: | RG | Date: | Sun, 11 Sep 2005 23:48:39 +0000 |
| Subject: | Re: Zend resources | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-18784@lists.php.net to get a copy of this message | ||
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" <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.