thrift-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 陈竞 <cj.mag...@gmail.com>
Subject Re: how can i get the client's ip from the server of thrift
Date Mon, 24 Oct 2011 03:21:41 GMT
my method is  let you ip be the param of you interface , and tranfer to
server, and so that server can get it

2011/10/24 stream <stream1984@gmail.com>

> Well, i just wanna mark the record of client with its ip address.
> i think is the best way to write a subclass of TServerSocket.
> there are any other's?
>
>
> On 2011-10-24, at 上午10:39, Mike Riley wrote:
>
> > It looks like subclassing TServerSocket/TNonBlockingServerSocket (and
> > your chosen server class) will allow you to access the IP address (or
> > hostname) pretty easily right from the Sockets they manage so that's
> > what you're shooting for I guess...
> >
> > On Sun, Oct 23, 2011 at 10:15 PM, stream <stream1984@gmail.com> wrote:
> >> well, is my fault ,not clear the description .
> >> the library is Java... thank Mike firstly...
> >>
> >> On 2011-10-24, at 上午9:20, Mike Riley wrote:
> >>
> >>> plac
> >>
> >>
>
>


-- 
陈竞,中科院计算技术研究所,高性能计算机中心
Jing Chen HPCC.ICT.AC China

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message