note 46475 deleted from function.socket-create-pair by nlopess

From: Date: Sun, 06 Nov 2005 22:38:02 +0000
Subject: note 46475 deleted from function.socket-create-pair by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-98174@lists.php.net to get a copy of this message
Note Submitter: benst at wallypalace dot com ---- the returned sockets do not work well with the stream_select function ! if you already use streams you can use this : <? function all_select(&$sr, &$sw, &$or, &$ow) { $e = array(); $ss = stream_select($sr, $sw, $e, 0); $so = socket_select($or, $ow, $e, 0); return $so + $ss; } ?> you loose the ability to use the timeout but there is no other way i know of.

« previous php.notes (#98174) next »