http://qs321.pair.com?node_id=529837


in reply to Non-blocking socket read on Windows

On Windows, you can use this ioctl call to make the socket non blocking:
ioctl($socket, 0x8004667e, $nonblocking);

update: $nonblocking = 1 => makes the socket non blocking, $nonblocking = 0 => makes the socket blocking.