Re: find out if client is connected / server is reachable



The whole purpose of the server is to stay around. The code must be robust
enough to do that. But for the client, you can do leasing with the server
so that the server knows that the client is not there anymore. Checkout
leasing in .Net remoting.

"Robert Ludig" <schwertfischtrombose@xxxxxx> wrote in message
news:1168434085.410078.58450@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
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.



.



Relevant Pages

  • Re: What doesnt lend itself to OO?
    ... >> proxy and instructs the server to constuct the real object. ... rather than client code. ... If 'clock' is instantiated in the server, ... > for the server interface at the OOA level. ...
    (comp.object)
  • This is going straight to the pool room
    ... or not the client has privilege to do what they're trying to do, ... The server environment is this: ... 3GL User action Routines that Tier3 will execute on your behalf during the ... Routine Name: USER_INIT ...
    (comp.os.vms)
  • [Full-Disclosure] R: Full-Disclosure Digest, Vol 3, Issue 42
    ... Full-Disclosure Digest, Vol 3, Issue 42 ... SD Server 4.0.70 Directory Traversal Bug ... Arkeia Network Backup Client Remote Access ...
    (Full-Disclosure)
  • Re: What doesnt lend itself to OO?
    ... > rather than client code. ... no way to do that without also touching the object with clock semantics ... will not encapsulate both clock semantics and network semantics. ... The server can do whatever it wants ...
    (comp.object)
  • RE: Fax monitor incoming + outgoing calls?
    ... problem between the client computer and the SBS server. ... Client is using the internal IP address of the SBS server as the ... To the folder redirection GPO issue: ...
    (microsoft.public.windows.server.sbs)