Client server problem
Hello,
I have written Client and Server applications in C-Sharp language. They are communication
with each others using sockets. The problem is that when client connects to the server, and
if i disable the network (disconnect the network cable) at client side, it does not give any
notification at the Server side that client is abnormally disconnected. I have put the code
in try...catch, where I am reading client stream and i expect that i get an exception at
server side in this case... but i don't (Note: I do get exception here if my client and
server are running on same machine).
Anybody has any idea how to handle such situation.
Thanks,
Kamran

Answers
Know the answer? Post it. Somebody with the same question will find it here.