Home Help Center

Getting remote address

g00fyg00fy Member SalvaniaOrganization: SalvaniaProject: Database systems ✭✭
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

  • marcmarc FloridaAdministrators, ZeroC Staff Marc LaukienOrganization: ZeroC, Inc.Project: The Internet Communications Engine ZeroC Staff
    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...).
  • jaejae Member John EisenmanOrganization: Orange SVProject: N/A
    As the more elegant solution mentioned above been implemented?
  • benoitbenoit Rennes, FranceAdministrators, ZeroC Staff Benoit FoucherOrganization: ZeroC, Inc.Project: Ice ZeroC Staff
    Hi John,

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

    Cheers,
    Benoit.
Sign In or Register to comment.