[omniORB] Client disconnect event
Duncan Grisby
duncan at grisby.org
Fri Oct 13 09:19:07 BST 2006
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 at grisby.org --
-- http://www.grisby.org --
More information about the omniORB-list
mailing list