Archived

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

Getting remote address

Hi,

How do I get the remote address and port when I have the ICE::Current?

I know I can do ICE::Current.con->toString(), but that returns a string with the port and all that stuff in it... Isn't there another mean of getting the remote information?

This is because I am trying to add logging to my application where every logevent occupies 1 line (ala Apache-style).


BTW: I know I can just parse it, but on a heavily used server, to start parsing there is a bad idea... So I will need to dedicate a seperate server for only logging purposes, which is a little outrageous at the moment... So I like to know where I can have a look at :cool:.


Thanks a lot!
Steven

Comments

  • I'm afraid at present parsing the string is your only option. I agree that a more elegant method should be added to Ice (and it's on our long todo list...).
  • As the more elegant solution mentioned above been implemented?
  • benoit
    benoit Rennes, France
    Hi John,

    No, I'm afraid this is still on our TODO list.

    Cheers,
    Benoit.