Home Help Center

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?

Comments

  • marcmarc FloridaAdministrators, ZeroC Staff Marc LaukienOrganization: ZeroC, Inc.Project: The Internet Communications Engine ZeroC Staff
    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.
  • oulobaouloba Member
    thanks

    How to know which client to invoke server function, and the client's remote address(IP and Port).
  • marcmarc FloridaAdministrators, ZeroC Staff Marc LaukienOrganization: ZeroC, Inc.Project: The Internet Communications Engine ZeroC Staff
    Pass a proxy from the client to the server, on which the server invokes.
Sign In or Register to comment.