Exchanging 64 bit data between windows and linux

CHAUVE Adrien adrien.chauve at quantel.fr
Wed Aug 31 03:02:36 PDT 2011


Thanks, but what do you mean by "the decoder"? in dbus? In qtdbus?

-----Message d'origine-----
De : dbus-bounces+adrien.chauve=quantel.fr at lists.freedesktop.org [mailto:dbus-bounces+adrien.chauve=quantel.fr at lists.freedesktop.org] De la part de Thiago Macieira
Envoyé : mercredi 31 août 2011 11:48
À : dbus at lists.freedesktop.org
Objet : Re: Exchanging 64 bit data between windows and linux

On Wednesday, 31 de August de 2011 11:10:06 CHAUVE Adrien wrote:
> Hi,
> 
> I'm trying to use QtDBus to communicate between a linux server and a 
> windows client, but I can't get to exchange 64 bit data (double or 
> INT64).
> 
> While it works fine when my client runs also on linux, I get the 
> following behavior when the client runs on windows:
> - send (INT64):       0x1234567 89abcdef
> - receive (INT64):  0xef320001 89abcdef So the last 32 bits are OK but 
> not the first ones. This is just the same for DOUBLE.
> 
> Is this a known problem or have I missed something?

It's not a known problem.

My guess is that it's a problem in the decoder, which is probably using a 32- bit type to read instead of a 64-bit one.

--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel Open Source Technology Center
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358


More information about the dbus mailing list