[zeromq-dev] c struct as a zmq message

Andrew Hume andrew at research.att.com
Fri Jan 7 15:31:52 CET 2011


there are many, many ways you can be screwed here.
don't be careful, just do it right.

ALWAYS transport data in a machine/architecture independent way.
then there is never a need to be careful. in 99.99% of cases,
the cost of conversion overhead is negligable, and will be
completely paid back teh first time someone changes some hardware
or extends your app to other incompatible systems.

andrew

On Jan 7, 2011, at 7:12 AM, Daniel Cegiełka wrote:

> Yes, you're right. I'll be careful.
> 
> thanks,
> daniel
> 
> W dniu 7 stycznia 2011 14:56 użytkownik Martin Sustrik <sustrik at 250bpm.com> napisał:
> 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.
> 
> Martin
> 
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev

------------------
Andrew Hume  (best -> Telework) +1 623-551-2845
andrew at research.att.com  (Work) +1 none currently
AT&T Labs - Research; member of USENIX and LOPSA




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20110107/e4dac774/attachment.htm>


More information about the zeromq-dev mailing list