thrift-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carlos Valiente <superdup...@gmail.com>
Subject Re: Client IP address
Date Wed, 06 May 2009 17:55:45 GMT
> 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

Mime
View raw message