Chris,

The connect() API returns SOCKET_ERROR -- that means it can't connect to the server. Directly after that, WSAGetLastError is called. The question is whether we can trust the return value retrieved from WSAGetLastError (especially in the Proxy Server case). I don't know

Friedrich