Last time I looked there wasn't any kind of htons kinda calls in the receiving of net_ctrls data, although flightgear does do it for outgoing net_fdm data, which kinda confused me. I'll have to take a closer look tonight when I get home. Very perplexing problem :)
On 3/8/06, Anders Gidenstam <[EMAIL PROTECTED]> wrote: > On Wed, 8 Mar 2006, Drew Kirkpatrick wrote: > > > I'm fairly restricted on this point, I have to pack the data the way > > Flightgear unpacks it. I am using the same object/structure to pack > > the data in. I should have mentioned, the laptop sending the joystick > > information (when it's not working) is a 32 bit gentoo box, and the > > receiver of those packets running flightgear is a 64 bit gentoo box. > > Could this have something to do with byte order? > > I am not familiar with the networking part of FlightGear (nor any other > part, mostly), but since FlightGear is so portable I am sure > encoding/decoding routines for the network data somewhere. > > If the struct you are sending is a FGNetCtrls instance > (src/Network/net_ctrls.hxx) then there seems to be encoding/decoding > routines in FGNativeCtrls (src/Network/native_ctrls.hxx). Are you using > them on the data before you send it? > > Best regards, > > Anders Gidenstam > -- > "Luck is my middle name," said Rincewind, indistinctly. "Mind you, > my first name is Bad." > -- (Terry Pratchett, Interesting Times) > ------------------------------------------------------------------ > | Anders Gidenstam | Tel: 031-230645 070-296 1707 | > | Email: [EMAIL PROTECTED] | WWW: www.cs.chalmers.se/~andersg | > ------------------------------------------------------------------ > (Note to Outlook users: Click forward/vidarebefodra to make any > attachments visible.) > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting language > that extends applications into web and mobile media. Attend the live webcast > and join the prime developer group breaking into this new coding territory! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > _______________________________________________ > Flightgear-devel mailing list > Flightgear-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/flightgear-devel > ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel