Browse Source

Client-Counter

remotes/origin/server
Paul Kattenborn 11 months ago
parent
commit
afb3a19d98
  1. 1
      .classpath
  2. 3
      src/main/java/ChatServer.java

1
.classpath

@ -36,5 +36,6 @@
<attribute name="maven.pomderived" value="true"/> <attribute name="maven.pomderived" value="true"/>
</attributes> </attributes>
</classpathentry> </classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/5"/>
<classpathentry kind="output" path="target/classes"/> <classpathentry kind="output" path="target/classes"/>
</classpath> </classpath>

3
src/main/java/ChatServer.java

@ -56,5 +56,8 @@ public class ChatServer {
public void removeClient(ClientHandler client) { public void removeClient(ClientHandler client) {
clients.remove(client); clients.remove(client);
} }
public List<ClientHandler> getClients() {
return clients;
}
} }
Loading…
Cancel
Save