[zeromq-dev] endian conversions?

Martin Sustrik sustrik at fastmq.com
Wed Dec 10 11:15:12 CET 2008


Still, you may find zmq/wire.hpp useful. It defines functions to get/set 
integers in the payload in endian-independent manner.

Martin

Martin Sustrik wrote:
> Ah, OK, I see.
> 
> In that case the answer is no. Message payload is considered to be a 
> binary BLOB and no conversions whatsoever are performed on it. The 
> principle is: What yo send is what you receive.
> 
> Martin
> 
> Steven McCoy wrote:
>> Martin,
>>
>>   I think Aamir might be referring to automagically converting the 
>> payload from network to host endianness and back.  Similarly some people 
>> may ask about converting textual payloads to the hosts default locale.
>>
>> -- 
>> Steve-o
>>
>>
>> 2008/12/10 Martin Sustrik <sustrik at fastmq.com <mailto:sustrik at fastmq.com>>
>>
>>     Aamir,
>>
>>     It should handle it endianness correctly. We've tested in on
>>     little-endian (x86) and big-endian platforms (SPARC). Why do you believe
>>     endianness may be the problem? What microatch are you working on?
>>
>>     Martin
>>
>>     Aamir M wrote:
>>      > Does ZeroMQ handle Endianness conversion to support communication
>>     across
>>      > different architectures? It appears not?
>>
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> zeromq-dev mailing list
>> zeromq-dev at lists.zeromq.org
>> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
> 
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev




More information about the zeromq-dev mailing list