I got a problem with my server.
I use a Socket in Blocking mode.
I created an infine loop and wait for data using the Receive method.
This works really good until the client disconnects. Afther that the Receive
method wont block anymore and the Connected property still returns true.
The thread used by the connection now eats all CPU time.
So how do i find out if a connection is broken?
---
My code:
Listening server:
http://paste.phpfi.com/41712
Thread for Client->Server connection:
http://paste.phpfi.com/41713