On 06/07/2012 10:23 PM, Kevin McIntyre wrote:
Below is my sample code. I'm hoping to unplug my internet cable and get a connectionLost. But this doesn't happen. Is there anyway to detect this?
Send out a message every few seconds or minutes; if you're not sending any traffic the OS will not detect problems with the TCP connection.