简体   繁体   中英

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?

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

看一下MessagePack

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM