Lars J. Nilsson committed cb1d42a

Edited online

Comments (0)

Files changed (1)

 All integer types wider than 8 bits are sent in network byte order (big-endian, most significant bit first).
+=== JSON Format ===
+The packet format follows the JSON specification. All integers, strings and structs are trivially converted between the protocol format and its JSON equivalense, except for those noted below.
+Each packet will have a “classId” field with an integer value which correspond to the packet ID specified in the protocol XML definition. This can be used for polymorphic parsing of the packets.
+All byte array fields will be Base64 encoded and packaged as a JSON string.
+Enumerations are encoded as JSON strings. 
 === Protocol Generator ===
 The protocol generator is a Maven plugin that takes a protocol specification in an XML file and generates protocol objects in various languages such as Java, JavaScript, Flash, C++ etc.