Class WireCommands


  • public final class WireCommands
    extends java.lang.Object
    The complete list of all commands that go over the wire between clients and the server. Each command is self-contained providing both it's serialization and deserialization logic. Commands are not nested and contain only primitive types. The types are serialized in the obvious way using Java's DataOutput and DataInput. All data is written BigEndian. Because length and type are detected externally these are not necessary for the classes to supply. Compatible changes (i.e. Adding new members) that would not cause breakage if either the client or the server were running older code can be made at any time. Incompatible changes should instead create a new WireCommand object.