thrift-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Evans <eev...@sym-link.com>
Subject Re: Is anybody use twisted(Python) & thrift?
Date Wed, 17 Jun 2009 21:20:20 GMT
[ Esteve Fernandez ]
> > I'm having some trouble getting a Twisted client working with a Java
> > server, and I noticed that you said something similar in THRIFT-148.
> >
> > Can you provide an example of Twisted client code that uses
> > TFramedTransport?
> 
> Twisted clients and servers always use TFramedTransport, so if you need them
> to interact with other clients and servers, make sure everything is "framed".
> For example, in the Java server from the tutorial, you'd have to add something
> like this:
> 
>  TServerTransport serverTransport = new TServerSocket(9090);
>  TFramedTransportFactory tfactory = new TFramedTransportFactory();
>  TProtocolFactory pfactory = new TBinaryProtocol.Factory(),
>  TServer server = new TSimpleServer(processor, serverTransport, tfactory,
> pfactory);
> 
> Hope that helps.

Yes, it does. Thanks.

-- 
Eric Evans
eevans@sym-link.com

Mime
View raw message