diff --git a/Assignment 4/src/ca/cosc3p91/a4/util/PacketTable.java b/Assignment 4/src/ca/cosc3p91/a4/util/PacketTable.java index 6a77770..471f49e 100644 --- a/Assignment 4/src/ca/cosc3p91/a4/util/PacketTable.java +++ b/Assignment 4/src/ca/cosc3p91/a4/util/PacketTable.java @@ -2,6 +2,15 @@ package ca.cosc3p91.a4.util; public class PacketTable { - + // packetID -> byte defined in this file + // clientID -> long + // messageID -> long + + // packetID, clientID (0 if connecting to server) + public static final byte CONNECT = 0x1; + // packetID, clientID + public static final byte DISCONNECT = 0x2; + // packetID, clientID, messageID + public static final byte ACK = 0x3; }