Ok lets say I have a server application, which is listening. I also have a client application that connects. If I was connected, and connection was some how lost, I want the server to listen again. I dont think using Winsock_Error would work because There would be no error unless it was in the middle of sending or recieving data. I guess I could use a timer that sends a command every 5 seconds or so, but maybe theres a way around using a timer?
