[omniORB] Client Connections.
Duncan Grisby
dgrisby@uk.research.att.com
Tue, 01 Feb 2000 10:26:31 +0000
On Tuesday 1 February, "Mark Milbourne" wrote:
> Is there any way to have a server object notified when a clients connection
> is terminated or broken?
>
> I want to be able to clean up after the client has terminated.
You cannot detect when a client's connection is broken, since the TCP
connections used by IIOP are independent of the lifetimes of the
clients and servers. If a connection hasn't been used for a while, the
ORB closes it, and reopens it when necessary. Just because the TCP
connection has gone, it doesn't mean that the client itself no longer
exists.
There are many ways of achieving what you want. I recommend that you
get a good book, like Henning and Vinoski's Advanced CORBA Programming
with C++.
Cheers,
Duncan.
--
-- Duncan Grisby \ Research Engineer --
-- AT&T Laboratories Cambridge --
-- http://www.uk.research.att.com/~dpg1 --