Collecting client/server connections
- The current implementation does not collect client/server connections.
- It is very import to collect connections, because the
threads needed to dispatch remote calls forbid the termination
of processes.
- Connections can be collected as follows:
- Each object of the class ServerConnection must have a reference counter.
That counter will keep the number of references to objects owned
by the server process.
- It increases the counter in the method receiveNetObj and
decreases the counter in finalizeStub.
- When the counter reaches the value zero, the manager
of the client process can close the connection.
- 7 -