Reputation: 551
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?
Upvotes: 4
Views: 667
Reputation: 62106
Look for state machine compilers like Ragel. They will generate compilable code based on a state machine specification.
Upvotes: 1