Skip to content
drakehutner edited this page Apr 24, 2012 · 1 revision

Packet Format

Version: 1.0 , 24th April 2012

Basic Structure

The network packets can be formatted using the XML or the JSON-language. JSON is a bit more lightweight than XML , but since both formats are a representation of a tree, they should be exchangable.

A basic packet possibly has the following structure. (This is open for discussion)

	\--root
	   +--Version
	   +--Type
	   +--Command
	   |  +--Command type
	   |  \--Command parameters
	   \--Payload
	      +--payload length
	      +--payload type
	      \--payload data

Version

The version is composed by two number. A major and a minor version number, separated by a dot. Compatibility must be ensured between minor version changes. A change in the major version, could result in a complete new structure, therefore backwards compatibility can be discarded.

Clone this wiki locally