Pass Client & ClientListener through all controllers
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user