I've created a client application which uses CAsyncSocket to retrieve data from a server. The problem occurs when my router is down or when I pull out my network cable. When I call CAsyncSocket::Connect, the application hangs. When I have network connection, all is fine but when I have a problem with it, the application hangs. I do recieve server down messages and other errors, but when my local network is down, I don't recieve any notification.