[zeromq-dev] endian conversions?
Aamir M
intuitionist at gmail.com
Mon Dec 15 19:35:27 CET 2008
Hi Martin,
Sorry, I was confusing the ZMQ wire format with the user wire format. The
issue is that my own data (e.g. doubles) won't undergo endian conversion. I
think the solution is to use an encoding such as Google Protocol Buffers.
ZMQ will take care of endian conversion of the Protocol Buffers data, while
Protocol Buffers will take care of endian conversion of native datatypes
when it decodes to data sent over ZMQ.
I know from my experience with QPid that AMQP provides the user with a
Buffer class that has methods such as putDouble and getDouble, as well as
decode and encode methods that are supposed to automatically handle endian
conversion. But I guess that ZeroMQ is much lightweight and it is up to the
user to provide the wire format.
Thanks,
Aamir
On Wed, Dec 10, 2008 at 4:06 AM, Martin Sustrik <sustrik at fastmq.com> wrote:
> 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?
>>
>> Thanks,
>> Aamir
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> zeromq-dev mailing list
>> zeromq-dev at lists.zeromq.org
>> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20081215/5755ac5a/attachment.htm>
More information about the zeromq-dev
mailing list