function socket_select (array &$read, array &$write, array &$except, $tv_sec, $tv_usec = null) http://php.net/manual/en/function.socket-select.php