Multiplayer protocol: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 6: Line 6:


XDR basically means that all data is in network byte order and aligned to the nearest multiple of 4 bytes. Strings are encoded as a zero-terminated array of characters, aligned to the nearest multiple of 4 bytes, and floating point numbers (32 or 64 bit) must be encoded as per the IEEE standard.
XDR basically means that all data is in network byte order and aligned to the nearest multiple of 4 bytes. Strings are encoded as a zero-terminated array of characters, aligned to the nearest multiple of 4 bytes, and floating point numbers (32 or 64 bit) must be encoded as per the IEEE standard.
For the record, strings are limited to 128 characters (512 bytes) and packets are limited to 1200 bytes; these limits are hardocded in fgfs.<ref>{{cite web
  |url    =  https://sourceforge.net/p/flightgear/mailman/message/35059961/
  |title  =  <nowiki> Re: [Flightgear-devel] dual-control-tools and the limit on packet
size </nowiki>
  |author =  <nowiki> Ludovic Brenta </nowiki>
  |date  =  May 3rd, 2016
  |added  =  May 3rd, 2016
  |script_version = 0.36
  }}</ref>


== Future Development ==
== Future Development ==

Navigation menu