Home Help Center

Client&Server

zhaiylzhaiyl Member
How can I implement a Server, which is also a Client. I mean, it can call an operation or send some data to the Client actively.

Comments

  • marcmarc FloridaAdministrators, ZeroC Staff Marc LaukienOrganization: ZeroC, Inc.Project: The Internet Communications Engine ZeroC Staff
    There is nothing special to do. You just invoke on a proxy in the server, as usual.

    For a callback example, have a look at demo/Ice/callback.
  • zhaiylzhaiyl Member
    Thanks!

    But I don't think it's actively.

    You mean muti-threads?
  • marcmarc FloridaAdministrators, ZeroC Staff Marc LaukienOrganization: ZeroC, Inc.Project: The Internet Communications Engine ZeroC Staff
    I'm not sure I understand what you mean. Ice is inherently multi-threaded. However, you can use the main thread to call operations on proxies. Requests are dispatched in threads from the thread pool, and don't require the main thread.
  • zhaiylzhaiyl Member
    Thank you!

    I'll think more about it.
Sign In or Register to comment.