How to reconnect to the server when the ethernet cable unplugged and replugged using Socket
-
Hi I am developing a windows applicaiton which is a client and connected with a server(a 3rd party tool developed in Labview) thru TCP socket. Communication is ok but when i unplugg the ethernet, the server is still indicating the client is connected. when i replugg the ethernet cable in the client side, im have done shutdown, close of socket and trying to re-establish the connection. But i could not make the conncetion the Socket.Beginconnect throwing the exception. How to handle this situation.. can server detect the client availablity if the ethernet cable unplugged at client side? I can't modify that server code, Is it possible to do something at client side to reconnect it to server? I have tried Networkavailablitychange class, but no use.. Please post some sample code or links, that would be really help full please.. Thanks Srini