Hi,

If anyone has tried running the FG/OpenGC displays across a network of mixed
platforms you might experience a problem with the sizeof() function used to
determine the size of the network data packet.

Linux and cygwin calculate the value differently in aligning the bits in
memory.
 the result will be garbage at the output end
A quick solution is to add a dummy variable of type int at the preamble of
the data packet on both sides of
the interface as noted below. This results in a structure size where modulus
8 is zero and the bits align,

In the file opengc_data.hxx

// at the start of the public definition in the class ogcFGData

 unsigned int     version_id;
 unsigned int     msg_type;
 unsigned int    msg_content
 unsigned int    dummy;  /// add this to make the bits line up between linux
and cygwin

Regards
John W.


_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to