From 3ce19169cc21de1f3cc4cac468b93f3607e14f20 Mon Sep 17 00:00:00 2001 From: Brett Date: Thu, 13 Apr 2023 23:38:06 -0400 Subject: [PATCH] packet table got fucked by git, add that --- Assignment 4/src/ca/cosc3p91/a4/util/PacketTable.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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; }