Home Help Center

Easy way to get endpoint of client

dragoniidragonii Member rains wangOrganization: system designProject: Server Manager
Hi:

In the callback demo, client pass the proxy pointed to itself to server, make the server know the client.

I checked the online manual, found that there's no method to retrive the endpoint of the client from proxy, such as proxyToString() or something like this, so is there any easy way to get such infomation like IP, port? No matter from server side or from client side, just retrive the client endpoint info.


Thanks
Rains

Comments

  • matthewmatthew NL, CanadaMember Matthew NewhookOrganization: ZeroC, Inc.Project: Internet Communications Engine ✭✭✭
    Its not clear to me whether you want the information from the proxy, or whether you want the address of the caller. For the address of the caller take a look at http://www.zeroc.com/faq/clientIPAddress.html

    Given a proxy you can also find out the information by calling ice_getEndpoints on the proxy. Once you have the endpoints, you can call toString() on each.
  • dragoniidragonii Member rains wangOrganization: system designProject: Server Manager
    Thank you so much, it's very helpful.
Sign In or Register to comment.