Hi

I have developed a winsock application.

Everything is working fine except for client disconnections.


If a client program is closed, the Winsock Close event occurs on the server program.

However, if windows crashes, or the client computer is just turned off, the close event does not occur. How can I get it to occur?

Also, what is a good way of checking if a connection exists, even if the close event hasn't happened?

My program uses a control array so that multiple clients can connect at the same time.


Thanks.