Hi Alex,

2010/8/4 Александр Мартынов <[email protected]>:
> 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

------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
Cpp-netlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cpp-netlib-devel

Reply via email to