Hi,

I'm using standard-winsock(2.0) writing a simple TCP server application.

First i listen to a port, then accept an incomming connection and then
doing some communication.

I know, if the client closes the connection gracefully a final Send with 0-Bytes is done.

Now my question:
Is it possible to detect anyhow, if the client closed the connection NOT gracefully,
for example removing the network-cable, killing his application, or something like this.

Any suggestions are welcome.
Matze