Pass Client & ClientListener through all controllers

This commit is contained in:
Clément
2025-03-10 13:52:35 +01:00
parent 3abdc09819
commit 07272732d4
9 changed files with 154 additions and 36 deletions

View File

@@ -23,9 +23,9 @@ public class PacketPool {
private final Socket socket;
private static int MAX_SEND_TRY = 50;
private static long SEND_DELAY = 100;
private static long SEND_DELAY = 10;
private static long RETRY_INTERVAL = SEND_DELAY * 2;
private static float PACKET_LOSS_PROBABILITY = 0.5f;
private static float PACKET_LOSS_PROBABILITY = 0.1f;
private static record ReliablePacketAddress(ReliablePacket packet, InetSocketAddress address) {
@Override