Re: [PHP4BETA] select() Design Notes

From: Date: Sat, 04 Dec 1999 20:07:37 +0000
Subject: Re: [PHP4BETA] select() Design Notes
References: 1 2 3 4  Groups: php.version4 
Request: Send a blank email to php-version4+get-7419@lists.php.net to get a copy of this message
> What about the possibility of keeping select(), fd_set() and fd_isset() > without using globals? One would call fd_set() with the fd and a second > parameter specifying what fd_set it should belong to (read, write, > except). fd_set() then calls ZEND_REGISTER_RESOURCE() to register the > fd_set and to register the highest numbered fd. Then select() is called > with just a timeout value and fetches the fd_set(s) and highest numbered > fd. fd_isset() would also fetch the fd_set(s) and see if the supplied fd > is set. I know this is different than C's select() but it seems that > it's either this way or exactly like C's select() except it only accepts > a single fd resource for each of read, write and except. > > How does this sound? There's also the combination of fd_isset() and Thies' select() implementation (select($timeout,$rfd,$wfd,$efd) where $?fd is a single fd resource or an array of fd resources). -- ev ---------------------------- Evan Klinger evan@php.net AIM evan715

« previous php.version4 (#7419) next »