thrift-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Slee <>
Subject RE: Using thrift for file message transport
Date Fri, 22 Oct 2010 00:29:48 GMT
I don't think we have any tutorials on this, unfortunately.

In C++, we have a TFileTransport which stores messages in a chunked file with error-correction.
Otherwise, there is just a TSimpleFileTransport, which is a very simple wrapper around basic
read/write syscalls.

It doesn't look like file transports have been written for C#. It should be an extremely straightforward
process. I'm not familiar with C# myself, but I assume it has similar I/O interfaces to Java.
Wrapping one of these up in a Thrift transport class should be a very quick task.

You should essentially be able to model this off TSocket.cs, and probably use the same TStreamTransport.cs
base class. All you'll need to fill in are the mechanics of opening/closing the file, and
getting input/ouputStream objects.


-----Original Message-----
From: Kim l. Bendtsen [] 
Sent: Thursday, October 21, 2010 3:52 AM
Subject: Using thrift for file message transport

Is there any tutorials explaining how to use Thrift for storing and retrieving messages in
a file?
I'm doing a c# program and can't seem to find an example on this.


View raw message