Guy
Guy

Reputation: 551

Parsing a user defined protocol from C and Python

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

Answers (2)

gonsalu
gonsalu

Reputation: 3194

Take a look at MessagePack.

Upvotes: 1

Alexey Frunze
Alexey Frunze

Reputation: 62106

Look for state machine compilers like Ragel. They will generate compilable code based on a state machine specification.

Upvotes: 1

Related Questions