Home Help Center

how Server to ClientH

helloCmy problem is:
I build a Server, each Client can connect to it and send some message. How can Server know which Client connecting and send back a message to
it ?
Can the Glacier's Callbacks do this? If can ,How to use it ? Does it has some demo?

Comments

  • benoitbenoit Rennes, FranceAdministrators, ZeroC Staff Benoit FoucherOrganization: ZeroC, Inc.Project: Ice ZeroC Staff
    You don't necessarily need to use Glacier to do this. You just need to change your client to act as a server and allow it to receive callbacks. This is demonstrated in the Ice-1.2.0/demo/Ice/callback demo. The client invokes on the server and the server invokes on the client (callback).

    Glacier would be usefull if you want to re-use the network connection which is established between the client and the server for invocations from the server to the client. This is usefull when you have a firewall for example between the client and server.

    Hope this helps!

    Benoit.
Sign In or Register to comment.