[zeromq-dev] c struct as a zmq message

Mikael Helbo Kjær mhk at designtech.dk
Fri Jan 7 15:10:24 CET 2011


Hi

> On 01/07/2011 02:36 PM, Daniel Cegiełka wrote:
> 
> > I use only c/c++ on linux :)
> 
> Say the endianness depends on the processor. Using C/C++ or Linux
> doesn't affect it in any way.

Very true. I find that especially for sending many small messages a standardized message format is key. Sooner or later you'll need to change things and then what about deployed clients or similar issues. Then there are issues of compression, ease of expansion, cross-platform use (endianness especially), cross language use too (what about easy parsing later on).

We use ProtocolBuffers for this, but there are other options. It is reasonable if not super-easy to get going with (there is a learning curve around its message description format), it has performed really well for us and it handles all those issues.

Regards,
Mikael
Software Engineer @ Designtech ApS


More information about the zeromq-dev mailing list