note 58367 added to function.socket-select
| From: | ludvigdotericsonatgmaildotcom at osu1 dot php dot net | Date: | Wed, 02 Nov 2005 01:35:05 +0000 |
| Subject: | note 58367 added to function.socket-select | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-97956@lists.php.net to get a copy of this message | ||
Regarding the comment below, No, it does not, it's a system call and I believe it's rather
hard to preserve keys.
Additionally, socket_select should be used like it was a user-inputted array, that you don't
know what you sent in to.
<?php
$reads = $clients;
$reads[] = $server;
socket_select($reads);
foreach ($reads as $read) {
/* do some stuff */
}
?>
----
Manual Page -- http://www.php.net/manual/en/function.socket-select.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+58367
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+58367&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+58367&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+58367&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+58367&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+58367&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+58367&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+58367&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+58367&report=yes
Search -- http://master.php.net/manage/user-notes.php