Hello Markus,

This is how TCP works. OnSessionClosed is fired when the other end say
"Goodbye", or when you try to send something and the other end is not
their anymore. There is no traffic if there is no data send, so TCP
layer cannot know if for example cable is plugged out.

So you have to do something lik Michael proposed. Implement keep alive
packets in your protocol if you need to know.

---
Rgds, Wilfried [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html
http://www.mestdagh.biz

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to