find out if client is connected / server is reachable
- From: "Robert Ludig" <schwertfischtrombose@xxxxxx>
- Date: 10 Jan 2007 05:01:25 -0800
I have a Remoting client and a remoting Server. The Remoting client is
a long running process that every once in a while calls the remoting
server. How do I ideally find out if the Server has diconnected from
the client? I was thinking of making the client call some simple ping
method on the Server every minute or so. In case it throws an Exception
, I know the Server is not reachable and I can set client.Connected =
false. However it seems that in case the server is not reachable the
call to server.Ping() doesn't return for a very long time and blocks. I
could of course call the Ping() in an extra thread an kill that thread
if the method hasn't returned after a predefined timeperiod and the
define client.Connected = false. Bu that doesn't feel right. There must
be a proper way (best practise) in .NET Remoting how determine the
connection state.
.
- Follow-Ups:
- Re: find out if client is connected / server is reachable
- From: Joe Doe
- Re: find out if client is connected / server is reachable
- From: Goran Sliskovic
- Re: find out if client is connected / server is reachable
- Prev by Date: Re: Raise event to client
- Next by Date: Re: find out if client is connected / server is reachable
- Previous by thread: Re: TCP Streams from Unknown source to VB.Net
- Next by thread: Re: find out if client is connected / server is reachable
- Index(es):
Relevant Pages
|