Am 2015-03-23 10:28, schrieb Tommi Mäkitalo:
> Hi,
> 
> cxxtools has a method getPeerAddr() in cxxtoos::net::TcpSocket but 
> there
> is currently no good way to get it in a http responder.

Yes, this getPeerAddr() I had found in the meantime too.

> In the responder there is a virtual method beginRequest which gets a
> std::istream. It is actually a cxxtools::IOStream, which has a attached
> device. The attached device is the tcp connection. With some ugly
> casting you can get the tcp connection.

Interesting approach. I will try that, thanks!

> It looks like it would be a useful feature, which I should implement.

That would be nice.

I was sure that you would help me.

Gerald

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Tntnet-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tntnet-general

Reply via email to