[prev in list] [next in list] [prev in thread] [next in thread] 

List:       omniorb-list
Subject:    Re: [omniORB] Client disconnect event
From:       Duncan Grisby <duncan () grisby ! org>
Date:       2006-10-13 7:19:07
Message-ID: E1GYHJq-0006A4-TN () apasphere ! com
[Download RAW message or body]

On Thursday 12 October, Tuyen Chau wrote:

> This question may have been asked before, but is there a way in
> omniORB to know if a client has disconnected?
> 
> I'm aware that we can build that into the IDL and have the client call
> the server before it exits, ie. a clean shutdown.  However, I'm more
> interested in detecting unexpected client disconnects, such as network
> failure, crashes, which usually have to be detected at the socket
> level?  Is there such an event in omniORB?

Clients do not keep connections permanently open, so what you want is
not possible. Both clients and servers are permitted to close
connections at any time, so closure of a connection doesn't tell you
anything about whether a client is still present or not.

To do what you want, you have to build your own keep-alive scheme by
sending pings or something equivalent.

Cheers,

Duncan.

-- 
 -- Duncan Grisby         --
  -- duncan@grisby.org     --
   -- http://www.grisby.org --

_______________________________________________
omniORB-list mailing list
omniORB-list@omniorb-support.com
http://www.omniorb-support.com/mailman/listinfo/omniorb-list
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic