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?
On 3/8/06, Anders Gidenstam <[EMAIL PROTECTED]> wrote: > On Wed, 8 Mar 2006, Drew Kirkpatrick wrote: > > > If no one has any ideas I'll probably > > put some print statements in the flightgear code, or write my own > > listener to make sure that the udp isn't getting garbled on the > > network. > > Hi! > > This is just a shot in the dark - but are you sure the struct/object you > are sending has the same representation on both of your computers? > From the code you posted it looks like you are sending the in-memory > representation of a struct or object and that might be different across > different platforms, operating systems or even compilers. > > IFAIK one would normally explicitly arrange/marshal the data into a well > defined format before sending it and likewise decode it from that format > at the receiver. This is a bit more work but it avoids a lot of problems > w.r.t. portability and interoperability. :) > > 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 > [email protected] > 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 [email protected] https://lists.sourceforge.net/lists/listinfo/flightgear-devel

