Browse Source

refactoring: Einrückungen

remotes/origin/feature/client/make-input-field-buttons-interactive
fdai7599 11 months ago
parent
commit
a268c06c87
  1. 12
      src/main/java/ChatServer.java

12
src/main/java/ChatServer.java

@ -9,18 +9,18 @@ public class ChatServer {
public ChatServer(int port) { public ChatServer(int port) {
try { 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(); e.printStackTrace();
} }
} }
public void broadcastMessage(String s) { public void broadcastMessage(String s) {
} }

Loading…
Cancel
Save