Kamran

Kamran

  • NA
  • 5
  • 0

client server problem

Apr 9 2005 9:13 AM
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