From 27b2866f4a2c4e4e3223f3ddffd60ff2b888f634 Mon Sep 17 00:00:00 2001 From: fdai7599 Date: Fri, 2 Feb 2024 17:14:15 +0100 Subject: [PATCH] =?UTF-8?q?kleine=20=C3=84nderungen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/{server/Server.java => ChatServer.java} | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) rename src/main/java/{server/Server.java => ChatServer.java} (79%) diff --git a/src/main/java/server/Server.java b/src/main/java/ChatServer.java similarity index 79% rename from src/main/java/server/Server.java rename to src/main/java/ChatServer.java index 70c24c9..cfdbca3 100644 --- a/src/main/java/server/Server.java +++ b/src/main/java/ChatServer.java @@ -1,14 +1,13 @@ -package server; import java.io.IOException; import java.net.ServerSocket; import java.net.Socket; -public class Server { +public class ChatServer { private ServerSocket serverSocket; - public void ChatServer(int port) { + public ChatServer(int port) { try { serverSocket = new ServerSocket(port); System.out.println("Started ChatServer on port " + port); @@ -22,7 +21,7 @@ public class Server { } public static void main(String[] args) { - // TODO Auto-generated method stub + new ChatServer(3141); }