Date: 11/22/99
- Next message: Jason S. Cornez: "[PHP-DEV] [PHP3/4] Sybase-CT, Apache 1.3.9, RedHat 6.1 Seg fault"
- Previous message: Evan Klinger: "[PHP-DEV] cvs: /phpdoc/functions network.sgml"
- Next in thread: Thies C. Arntzen: "[PHP-DEV] Re: [PHP4BETA] [Fwd: Re: select()]"
- Reply: Thies C. Arntzen: "[PHP-DEV] Re: [PHP4BETA] [Fwd: Re: select()]"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
This is part of the conversation I had with Rasmus discussing select()
and how to implement it. If anyone could help with regards to fetching
the fd of a resource without knowing the resource_type, please let me
know. Thank you.
-------- Original Message --------
Subject: Re: select()
Date: Sun, 21 Nov 1999 16:04:37 -0800
From: Evan Klinger <evan715 <email protected>>
To: Rasmus Lerdorf <rasmus <email protected>>
References: <Pine.WNT.4.21.9911211905260.-696081 <email protected>>
Rasmus Lerdorf wrote:
>
> > Ahh. Now I understand. But the question remains, after you are through
> > calling FD_SET() you would call select() but select will need the fd_set
> > variable which has the fd's stored in it. Could the fd_set struct be
> > registered or stored somewhere and fetched be select()?
>
> Sure, just make it another resource.
>
> -Rasmus
I am a little confused again. FD_SET() will be passed the resource as
returned by, say, fsockopen(). FD_SET() will need to fetch the actual fd
associated with the resource with ZEND_FETCH_RESOURCE() which leads us
back to square one.
--ev
---------------------------- Evan Klinger evan <email protected> AIM evan715
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Jason S. Cornez: "[PHP-DEV] [PHP3/4] Sybase-CT, Apache 1.3.9, RedHat 6.1 Seg fault"
- Previous message: Evan Klinger: "[PHP-DEV] cvs: /phpdoc/functions network.sgml"
- Next in thread: Thies C. Arntzen: "[PHP-DEV] Re: [PHP4BETA] [Fwd: Re: select()]"
- Reply: Thies C. Arntzen: "[PHP-DEV] Re: [PHP4BETA] [Fwd: Re: select()]"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

