set_nonblock() is working with the main socket to set it to
non-blocking. I can test this with the accept_connection() is working
like it should in non-blobking mode. the problem is the child sockets
accept_connection() gives me I can not set them to non-blocking mode.
when my code comes to read() it just waits and waits until its given
some data. socket_set_blocking() does not work with sockets, only file-pointers
used as sockets, I assume this is correct. foreach($sock->sock as $pos => $val)
{
set_nonblock($val); $bufer = '';
$return = read($val, $buffer, 1024); if ($bufer)
echo $buffer;
} this code will allways wait for read(). Ive tried putting the
set_nonblock() in the same place where I find the connections with
accept_connection() it makes no difference. I have also tried setting
the main socket with set_nonblock(), that effects accept_connection()
like it should, but does not efffect read() on any of the child
sockets. Chris Lee
lee@mediawaveonline.com