Archived

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

Easy way to get endpoint of client

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

  • matthew
    matthew NL, Canada
    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.
  • Thank you so much, it's very helpful.