blob: 89ae352cd02ae564f2b957636dffd0e65eb04503 [file] [log] [blame]
iproctor9a41a0c2007-07-16 21:59:24 +00001open Thrift
2module T = Transport
3
4class t (i,o) =
5object (self)
6 inherit Transport.t
7 method isOpen = true
8 method opn = ()
9 method close = ()
10 method read buf off len =
11 try
12 really_input i buf off len; len
13 with _ -> T.raise_TTransportExn ("TChannelTransport: Could not read "^(string_of_int len)) T.UNKNOWN
14 method write buf off len = output o buf off len
15 method flush = flush o
16end