commit | 90b4083d4cd468aa33bd441268c5069e5674da81 | [log] [tgz] |
---|---|---|
author | David Reiss <dreiss@apache.org> | 周二 6月 10 22:58:52 2008 +0000 |
committer | David Reiss <dreiss@apache.org> | 周二 6月 10 22:58:52 2008 +0000 |
tree | 2c81965ffab771fd2186d4d780e1d793f2578f3c | |
parent | 57b4d9a4acc1dee83097a8149ce8acac48bb3da1 [diff] [blame] |
Implement buffered transport git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@666386 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/alterl/src/thrift_binary_protocol.erl b/lib/alterl/src/thrift_binary_protocol.erl index 4e8cfb3..0605dc1 100644 --- a/lib/alterl/src/thrift_binary_protocol.erl +++ b/lib/alterl/src/thrift_binary_protocol.erl
@@ -13,7 +13,8 @@ -export([new/1, read/2, - write/2 + write/2, + flush_transport/1 ]). -record(binary_protocol, {transport}). @@ -26,6 +27,8 @@ new(Transport) -> thrift_protocol:new(?MODULE, #binary_protocol{transport = Transport}). +flush_transport(#binary_protocol{transport = Transport}) -> + thrift_transport:flush(Transport). %%% %%% instance methods