> I am implementing a thrift-based service in C++ at the moment and encountered 
> a question:
>
> Is there a way to get the client's IP address from inside a service method 
> implementation? I am using a TThreadedServer.

On Java, the trick is to keep a reference to the Thrift transport
object in your service implementation. See http://tinyurl.com/djv4m6,
http://tinyurl.com/c7oj2v and http://tinyurl.com/ddjjkb --- I managed
to achieve that by using a custom protocl factory.

C

Reply via email to