Archived
This forum has been archived. Please start a new discussion on GitHub.
Distributed class instances
in Help Center
Hi,
if there is a class instance passed to one or more clients, may each client change class attributes (are attributes public?) ? Are changes of class attributes distributed to all hosts holding the instance? E.g. as example of calls by reference, there is linked list using classes in Ice-Doc. What happens if server or client add/remove list members? Who will be informed...
Thanks & Bye
Matthias
if there is a class instance passed to one or more clients, may each client change class attributes (are attributes public?) ? Are changes of class attributes distributed to all hosts holding the instance? E.g. as example of calls by reference, there is linked list using classes in Ice-Doc. What happens if server or client add/remove list members? Who will be informed...
Thanks & Bye
Matthias
0
Comments
-
Hi Matthias,
When you pass class instances "by value", you just pass copies of the data. When a recipient changes its copy of a class instance, it's a purely local operation -- other copies are not affected or notified.
You can also give your clients proxies to an object that implements a Slice class. In this case, the clients can only access the class operations (as if the object implements just an interface).
Hope this helps!
Bernard0