|
@ -16,7 +16,7 @@ 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) { |
|
|
|
|
|
|
|
|
while (true) { |
|
|
System.out.println("waiting for new Client..."); |
|
|
System.out.println("waiting for new Client..."); |
|
|
Socket connectionToClient = serverSocket.accept(); |
|
|
Socket connectionToClient = serverSocket.accept(); |
|
|
ClientHandler client = new ClientHandler(this, connectionToClient); |
|
|
ClientHandler client = new ClientHandler(this, connectionToClient); |
|
|