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

How server initiatively send message to client, and client can responce to it?

I want to distribute server compute result datas to all clients. How server initiatively send data to client, and client can responce to it, but not by callback proxy method?


  • In order for your server to send a request to a client, you must implement an Ice object in your client (which makes your client also a server from the Ice perspective), pass a proxy to this Ice object to your server, and have the server invoke on this proxy. This is commonly referred to as callback, but in fact it's just a regular call. There is no other way for the server to invoke an operation on a client.
  • thanks

    How to know which client to invoke server function, and the client's remote address(IP and Port).
  • Pass a proxy from the client to the server, on which the server invokes.