IC:Protocol: Difference between revisions

From wiki.vg
Jump to navigation Jump to search
imported>TkTech
mNo edit summary
imported>MAD
(Signing and sizes?)
 
Line 2: Line 2:


== Data Types ==
== Data Types ==
All types are the same as Java for performance reasons, with the exception of unsigned bytes and unsigned ints.
All types are the same as Java for performance reasons, with the exception of all integral types having unsigned variants as well as signed variants. All sizes are unsigned.


== Header ==
== Header ==

Latest revision as of 01:24, 23 January 2011

The "InfiniCraft" (IC) Client Proxy <-> Node Protocol Draft.

Data Types

All types are the same as Java for performance reasons, with the exception of all integral types having unsigned variants as well as signed variants. All sizes are unsigned.

Header

All packets begin with the same header, intended to ease creating flexible tools and future-compatibility.

  • ID [unsigned byte] - denotes the type of packet being recieved
  • FLAGS [unsigned byte] - protocol and packet features
  • LENGTH [unsigned int] - total length of the packet (for skip-ahead)