Nachrichtenversenden gefixt/Test-Klassen in eigenes Paket

This commit is contained in:
eichehome 2021-05-14 17:44:48 +02:00
parent 8f2c12dab8
commit 6f39b1ba46
7 changed files with 81 additions and 84 deletions

View file

@ -17,7 +17,6 @@
package server;
import utils.FifoPipe;
import java.net.Socket;
import utils.ArrayHelper;
import utils.Message;
@ -53,4 +52,10 @@ public class ClientMessageStore {
public synchronized Thread removeThread(Thread thread) {
return arrayHelper.popThread(thread, clientThreads);
}
public void notifyAllClients() {
for (int i = 0; i < clientThreads.length; i++) {
clientThreads[i].interrupt();
}
}
}