Hi Alex,
2010/8/4 Александр Мартынов <am...@ma...>:
> Hello,
>
> I'm using cpp-netlib v0.5 in my http server and I want to get remote
> (peer) IP-address when I handle request. How I can get it?
>
You can check the source of the request object that gets passed into
the handler. You can do this by doing:
string ip = source(request);
If this doesn't work then that should be a bug. :)
HTH
(BTW, you might want to use 0.6 instead of 0.5).
--
Dean Michael Berris
deanberris.com
|