Voting

: three minus zero?
(Example: nine)

The Note You're Voting On

vshih at yahoo
16 years ago
rbarnes' tip is helpful, but I found that I needed to add a check for SOCKET_EISCONN in the while loop:

...
$error = socket_last_error();

if ($error == SOCKET_EISCONN) {
$connected = true;
break;
}
...

At least on Mac OS X 10.5.

<< Back to user notes page

To Top