Hi Deeraj,
the answer on that question you already received on SO [1] is entirely
sufficient. There's nothing more to add (at least from my perspective),
except maybe that only a handful of languages implement skeleton generation
or something comparable at all - and we are talking about very small hands
here :-) As Simon already wrote over there, the skeleton code is not really
needed in most cases. I would add, that that code depends to a good part on
the requirements. The tutorial and the Thrift test implementations are
really good examples to get started.
Have fun using Thrift,
JensG
[1]
http://stackoverflow.com/questions/29506326/server-skeleton-not-generating-in-c-glib-thrift
-----Ursprüngliche Nachricht-----
From: Deeraj
Sent: Wednesday, April 8, 2015 3:45 PM
To: [email protected]
Subject: Server skeleton generation using c_glib
*Hi,
I am trying to implement client/ server in c. I am able to generate the
server skeleton in cpp using the following command :
thrift ---gen cpp test.thrift
But while generating the code using c_glib, the server skeleton is not
generated.
Is this a problem with my .thrift file or is it because of the c_glib ?
Can you kindly confirm whether the c_glib generates the server skeleton?
The test.thrift file am using is appended here :
*
|#!/usr/local/bin/thrift --gen c_glib
namespace c_glibTest
struct packet{
1:required i32 header,
2:required i32 data,
3:required i32 crc
}
serviceSomething {
i32 ping(),
packet transfer()
}|