From fe06d4ccdf58e0b1abc6a8b368ec0272c7acc31b Mon Sep 17 00:00:00 2001 From: fdai7599 Date: Sun, 4 Feb 2024 17:22:16 +0100 Subject: [PATCH] grober Serverentwurf --- src/main/java/ChatServer.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/ChatServer.java b/src/main/java/ChatServer.java index cfdbca3..d8bacf8 100644 --- a/src/main/java/ChatServer.java +++ b/src/main/java/ChatServer.java @@ -13,11 +13,16 @@ public class ChatServer { System.out.println("Started ChatServer on port " + port); Socket connectionToClient = serverSocket.accept(); + System.out.println("Accepted new Client"); - } catch (IOException e) { + } + catch (IOException e) { e.printStackTrace(); } + } + public void broadcastMessage(String s) { + } public static void main(String[] args) {