THRIFT-2861 add buffered transport

Client: Haxe
Patch: Jens Geyer

This enables buffered transport in the tutorial code.
This commit is contained in:
Jens Geyer 2014-11-29 19:29:58 +01:00
parent d35f616c73
commit 05c1bff7e8

View File

@ -163,12 +163,11 @@ class Main {
// optinal layered transport
if ( framed) {
trace("- framed transport");
trace("- framed transport");
transport = new TFramedTransport(transport);
} else if ( buffered) {
trace("- buffered transport");
throw "TBufferedTransport not implemented yet";
//transport = new TBufferedTransport(transport);
trace("- buffered transport");
transport = new TBufferedTransport(transport);
}
@ -278,12 +277,11 @@ class Main {
// optional: layered transport
var transfactory : TTransportFactory = null;
if ( framed) {
trace("- framed transport");
trace("- framed transport");
transfactory = new TFramedTransportFactory();
} else if ( buffered) {
trace("- buffered transport");
throw "TBufferedTransport not implemented yet";
//transfactory = new TBufferedTransportFactory();
trace("- buffered transport");
transfactory = new TBufferedTransportFactory();
}
// protocol