User Protocol Analysis with C and Python

I need to define a binary protocol and use it both from a written C application and for Python. My question is, what is the right tool to work with, so I won’t need to parse and build the code in C and Python? I heard about the Google protocol buffers, but their C implementation is not mature enough for the protocol. Is their best replacement?

+4
source share
2 answers

Look for compilers for state machines, such as Ragel . They will generate compiled code based on the state machine specification.

+1
source

Take a look at MessagePack .

+1
source

All Articles