|
@ -19,6 +19,7 @@ public class ChatServer { |
|
|
while(true) { |
|
|
while(true) { |
|
|
Socket connectionToClient = serverSocket.accept(); |
|
|
Socket connectionToClient = serverSocket.accept(); |
|
|
ClientHandler client = new ClientHandler(this, connectionToClient); |
|
|
ClientHandler client = new ClientHandler(this, connectionToClient); |
|
|
|
|
|
clients.add(client); |
|
|
System.out.println("Accepted new Client"); |
|
|
System.out.println("Accepted new Client"); |
|
|
} |
|
|
} |
|
|
} catch (IOException e) { |
|
|
} catch (IOException e) { |
|
|