|
@ -13,11 +13,16 @@ public class ChatServer { |
|
|
System.out.println("Started ChatServer on port " + port); |
|
|
System.out.println("Started ChatServer on port " + port); |
|
|
|
|
|
|
|
|
Socket connectionToClient = serverSocket.accept(); |
|
|
Socket connectionToClient = serverSocket.accept(); |
|
|
|
|
|
|
|
|
System.out.println("Accepted new Client"); |
|
|
System.out.println("Accepted new Client"); |
|
|
} catch (IOException e) { |
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
catch (IOException e) { |
|
|
e.printStackTrace(); |
|
|
e.printStackTrace(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
public void broadcastMessage(String s) { |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public static void main(String[] args) { |
|
|
public static void main(String[] args) { |
|
|