note 84169 added to function.socket-read

From: Date: Tue, 01 Jul 2008 23:23:35 +0000
Subject: note 84169 added to function.socket-read
Groups: php.notes 
Request: Send a blank email to php-notes+get-141051@lists.php.net to get a copy of this message
Messed up the end of my previous one. Corrected version here: a simple work around to non-blocking working with normal read is like so: $read = array($socket); $write = NULL; $except = NULL; while(1) { $num_changed_sockets = socket_select($read, $write, $except, 0, 1); if ( $num_changed_sockets > '0' ) { socket_read($socket,10000,PHP_NORMAL_READ); } } ---- Server IP: 209.41.74.194 Probable Submitter: 67.40.18.33 ---- Manual Page -- http://www.php.net/manual/en/function.socket-read.php Edit -- https://master.php.net/note/edit/84169 Del: integrated -- https://master.php.net/note/delete/84169/integrated Del: useless -- https://master.php.net/note/delete/84169/useless Del: bad code -- https://master.php.net/note/delete/84169/bad+code Del: spam -- https://master.php.net/note/delete/84169/spam Del: non-english -- https://master.php.net/note/delete/84169/non-english Del: in docs -- https://master.php.net/note/delete/84169/in+docs Del: other reasons-- https://master.php.net/note/delete/84169 Reject -- https://master.php.net/note/reject/84169 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#141051) next »