Archived
This forum has been archived. Please start a new discussion on GitHub.
Getting remote address
g00fy
in Help Center
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
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
0
