Skip to content

Commit

Permalink
Add an explanation for the protocol version
Browse files Browse the repository at this point in the history
  • Loading branch information
IotaBread committed Jan 7, 2024
1 parent c5a5268 commit 320b9f2
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@

public abstract class EnigmaServer {
public static final int DEFAULT_PORT = 34712;
// Testing protocol versions are in hex: 0xMmVV => Major (4 bits), minor (4 bits), sub-Version (8 bits)
// Components are independent of the enigma version, i.e. enigma 2.1.0 isn't protocol 0x2100
public static final int PROTOCOL_VERSION = 0x1001;
public static final int CHECKSUM_SIZE = 20;
public static final int MAX_PASSWORD_LENGTH = 255; // length is written as a byte in the login packet
Expand Down

0 comments on commit 320b9f2

Please sign in to comment.