From: Александр М. <am...@ma...> - 2010-08-05 10:43:07
|
In which namespace/file I can find "source" function? I try to find in v0.5. Is there any problems when upgrading from 0.5 to 0.6? Is there no/little changes needed in my code to work with v0.6? > > 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 > Alex Martynov |