mapmusic wrote:
Hello Network Gurus,
I have app using TCP Socket.
I create connection properly and everything is fine.
I receive messages over it.
Problem is when I need to check disconnection , I am not sure how is the best way to do it.
How to fire Error Event ?
When I unplug ethernet cable I am not able to get error. Socket.Isconnected is true also after removing cable.(I check it for a couple of minutes)
Only way I found is to do "Socket.Connect" and then wait for error, but I dont want use this way to check it.
Have you any other tips ?
Thanks
Martin
TCP is fun
It wont know it's disconnected until the next time it tries to send and then you'll get an error