Browse Source

Einbinden von ClientHandler

remotes/origin/feature/client/make-input-field-buttons-interactive^2
Paul Kattenborn 11 months ago
parent
commit
33a9aa7e46
  1. 4
      src/main/java/ChatServer.java

4
src/main/java/ChatServer.java

@ -11,9 +11,11 @@ public class ChatServer {
serverSocket = new ServerSocket(port); serverSocket = new ServerSocket(port);
System.out.println("Started ChatServer on port " + port); System.out.println("Started ChatServer on port " + port);
while(true) {
Socket connectionToClient = serverSocket.accept(); Socket connectionToClient = serverSocket.accept();
ClientHandler client = new ClientHandler(this, connectionToClient);
System.out.println("Accepted new Client"); System.out.println("Accepted new Client");
}
} catch (IOException e) { } catch (IOException e) {
e.printStackTrace(); e.printStackTrace();
} }

Loading…
Cancel
Save