Home Help Center

Distributed class instances

hiaslhiasl Member Matthias WeberOrganization: University of Erlangen-NurembergProject: This baby is still nameless
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

Comments

  • bernardbernard Jupiter, FLAdministrators, ZeroC Staff Bernard NormierOrganization: ZeroC, Inc.Project: Ice ZeroC Staff
    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!
    Bernard
Sign In or Register to comment.