From d2200e63005f7a9c4159171c8a9d6e3b68ae7f08 Mon Sep 17 00:00:00 2001 From: Brett Date: Fri, 14 Apr 2023 00:00:04 -0400 Subject: [PATCH] saving changes for night, ideas are correct, impl is not --- Assignment 4/src/ca/cosc3p91/a4/util/Server.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Assignment 4/src/ca/cosc3p91/a4/util/Server.java b/Assignment 4/src/ca/cosc3p91/a4/util/Server.java index f9d6550..e260403 100644 --- a/Assignment 4/src/ca/cosc3p91/a4/util/Server.java +++ b/Assignment 4/src/ca/cosc3p91/a4/util/Server.java @@ -100,7 +100,15 @@ public class Server implements Runnable { } private void processRequest(ServerRequest request){ - + try { + switch (request.getID()){ + case PacketTable.ACK: + long messageID = request.getDataStream().readLong(); + break; + } + } catch (IOException e) { + throw new RuntimeException(e); + } } public void run(){