Hello, ZeroC support team.
I have two ICE components: the one is server component and the other is client one. The client connects to server, everything is fine.
Server must manage the client component. So the client component embeds the callback on his side.
Server can manage the client component by means of the callback, it works fine. Now the task is, server must know somehow whether the client is currently connected to it and it can manage the client or not. This task is solved in the following way. When server establishes a connection with a new client, it registers this connection together with client's callback in the map. Then another server's thread will ping each connection from the map and if the ping fail, then this means that the client is disconnected and there is no opportunity to manage it, so this map entry is deleted. I suppose my logic appears to be too complex, is there an easier way on the server's side detect the fact the one of his clients disconnected?

Reply With Quote