/* Prepare the read array * / $read = array( $socket1, $socket2); if (false === ($num_changed_sockets = socket_select($read, $write = NULL, $except = NULL, 0))) {/ * Error handling * / else if ($num_changed_sockets 0) {/ * At least at one of the sockets something interesting happened * /}
?php / * Pr eacute; pare le tableau read (socket surveill eacute;es en lecture) * / $read = array($socket1, $socket2); if (false === ($num_changed_sockets = socket_select($read, $write = NULL, $except = NULL, 0))) {/ * Gestion des erreurs * / else if ($num_changed_sockets 0) {/ * Au moins une des sockets a eacute;t eacute; modifi eacute; * /}?