Hi

> [ Esteve Fernandez ]
>> Are you wrapping your transport with TFramedTransport? In any case, could
>> you
>> post both your client and your server?
>
> Hi Esteve,
>
> 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.

Cheers.

Reply via email to