mirror of
https://github.com/valitydev/thrift.git
synced 2024-11-06 18:35:19 +00:00
THRIFT-2861 add buffered transport
Client: Haxe Patch: Jens Geyer This enables buffered transport in the tutorial code.
This commit is contained in:
parent
d35f616c73
commit
05c1bff7e8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user