Yeah, there aren't any examples yet, it's something on my to do list (THRIFT-976). I've been on vacation up until this week, so when I get some free time I'll put something together. In the meantime, the tests might be helpful to you, as Anthony mentioned.

On 1/7/2011 11:40 AM, Anthony Molinaro wrote:
Hi,

   I don't think there are many examples yet, but there are lots of
tests, which do create C clients so you might check those out for
examples

   http://svn.apache.org/viewvc/thrift/trunk/lib/c_glib/test/

-Anthony

On Fri, Jan 07, 2011 at 03:07:43PM +0100, S?kine Coulibaly wrote:
Hi !

I'm currently focusing on Cassandra to use in a project where C only is
invloved. I'm in the process of finding a C client Library to send
requests from our legacy C applications to a newly setup Cassandra
server.

Unfortunately, I didn't found any C client library. I have been said in
Stackoverflow.com that a Glib library for Thrift was available in the
trunk, and that from that library I should be able to code a C library
for Cassandra, bases on Thrift. So I checkouted the trunk, compiled the
compilere and used it to generate files using the cassandra.thrift file.

My question is : now, what shall I do ? There is no documentation for
the GLib C library i compiled, so it's not very clear to me what calls
are needed and what shall I do next.

> From what I can see for the C++
(http://wiki.apache.org/thrift/ThriftUsageC%2B%2B), I must instanciate a
Socket struct, then a BufferedTransport structure and a BinaryProtocol
one ? Then open the transport, call the Cassandra method I need, and
close the Transport right ?

Of course, I need to implement all the Cassandra related methods on my
own, is this correct ?

Thanks in advance

SC


Reply via email to