diff --git a/Assignment 4/COSC3P91-A4_Description_Brett&Michael.pdf b/Assignment 4/COSC3P91-A4_Description_Brett&Michael.pdf index 187f620..421d50e 100644 Binary files a/Assignment 4/COSC3P91-A4_Description_Brett&Michael.pdf and b/Assignment 4/COSC3P91-A4_Description_Brett&Michael.pdf differ diff --git a/Assignment 4/src/ca/cosc3p91/a4/Main.java b/Assignment 4/src/ca/cosc3p91/a4/MainClient.java similarity index 88% rename from Assignment 4/src/ca/cosc3p91/a4/Main.java rename to Assignment 4/src/ca/cosc3p91/a4/MainClient.java index 88c86f7..f83f643 100644 --- a/Assignment 4/src/ca/cosc3p91/a4/Main.java +++ b/Assignment 4/src/ca/cosc3p91/a4/MainClient.java @@ -3,7 +3,7 @@ package ca.cosc3p91.a4; import ca.cosc3p91.a4.util.network.Client; import java.io.*; -public class Main { +public class MainClient { public static void main(String[] args) throws IOException { new Client("localhost"); diff --git a/Assignment 4/src/ca/cosc3p91/a4/MainServer.java b/Assignment 4/src/ca/cosc3p91/a4/MainServer.java new file mode 100644 index 0000000..26dbfdf --- /dev/null +++ b/Assignment 4/src/ca/cosc3p91/a4/MainServer.java @@ -0,0 +1,11 @@ +package ca.cosc3p91.a4; + +import ca.cosc3p91.a4.util.network.Server; + +import java.io.IOException; + +public class MainServer { + public static void main(String[] args) throws IOException, InterruptedException { + new Server(); + } +} diff --git a/Assignment 4/src/ca/cosc3p91/a4/util/network/Server.java b/Assignment 4/src/ca/cosc3p91/a4/util/network/Server.java index e2f4e9f..e968f4a 100644 --- a/Assignment 4/src/ca/cosc3p91/a4/util/network/Server.java +++ b/Assignment 4/src/ca/cosc3p91/a4/util/network/Server.java @@ -83,10 +83,6 @@ public class Server implements Runnable { ioThread.join(); } - public static void main(String[] args) throws IOException, InterruptedException { - new Server(); - } - public static class ConnectedClient implements Runnable { private final InetAddress address; private final int port;