|
|
@ -9,18 +9,18 @@ public class ChatServer { |
|
|
|
|
|
|
|
public ChatServer(int port) { |
|
|
|
try { |
|
|
|
serverSocket = new ServerSocket(port); |
|
|
|
System.out.println("Started ChatServer on port " + port); |
|
|
|
serverSocket = new ServerSocket(port); |
|
|
|
System.out.println("Started ChatServer on port " + port); |
|
|
|
|
|
|
|
Socket connectionToClient = serverSocket.accept(); |
|
|
|
Socket connectionToClient = serverSocket.accept(); |
|
|
|
|
|
|
|
System.out.println("Accepted new Client"); |
|
|
|
} |
|
|
|
catch (IOException e) { |
|
|
|
System.out.println("Accepted new Client"); |
|
|
|
} catch (IOException e) { |
|
|
|
e.printStackTrace(); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
public void broadcastMessage(String s) { |
|
|
|
|
|
|
|
} |
|
|
|