I need to define a binary protocol and use it from both C and Python written application. My question is, what is the right tool for the job so I won't need to implement the protocol parsing and building code in C and Python? I heard about Google's Protocol Buffers but their C implementation is not mature enough for the protocol. Is their a better substitute?
-
2Are you planning on serialization of data and saving/loading from those applications, or on a RPC-like use? As I'm not sure of your question, this might/might not help: en.wikipedia.org/wiki/Thrift_%28protocol%29AntonioMO– AntonioMO2011-10-22 16:20:20 +00:00Commented Oct 22, 2011 at 16:20
-
4Protocol Buffers C++ implementation is very stable. My approach to a similar problem is to use C++ for the protocol and C for the functional part.alavrik– alavrik2011-10-22 22:04:07 +00:00Commented Oct 22, 2011 at 22:04
Add a comment
|
2 Answers
Look for state machine compilers like Ragel. They will generate compilable code based on a state machine specification.