Archived

This forum has been archived. Please start a new discussion on GitHub.

Calling methods of a client from the server

Does anyone know a simple way to call a method in a class of a client? More precisely, I'd like the server to call several clients' Update() function, but after browsing through the manual I still have no idea how to do it.

Thanks in advance,

Baloo

Comments

  • Your client has to implement an Ice object with such an update method. By doing so, your client also becomes a server (from the Ice perspective). You can then pass a proxy to this Ice object to the server, and the server calls the update method on this proxy. For an example, have a look at demo/Ice/callback.
  • Thanks. I should've looked at the demos first :)