G
Guest
I have a server utility which uses Sockets.TcpListener to listen to client
connections. Clients connect using using s.Connect(EPhost) where s is
s = new Socket(AddressFamily.InterNetwork, SocketType.Stream,
ProtocolType.Tcp );
Now unexpectedly server goes down, but client still get s.Connected property
to true. What is best way (less resource intensive) to find out that server
is now down so that client can start making reconnection attempts to get
updates from server? I need to start making reconnection attempts as soon as
server is down.
regards
Sachil
connections. Clients connect using using s.Connect(EPhost) where s is
s = new Socket(AddressFamily.InterNetwork, SocketType.Stream,
ProtocolType.Tcp );
Now unexpectedly server goes down, but client still get s.Connected property
to true. What is best way (less resource intensive) to find out that server
is now down so that client can start making reconnection attempts to get
updates from server? I need to start making reconnection attempts as soon as
server is down.
regards
Sachil