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