Class ReliablePacketManager
java.lang.Object
com.quietterminal.neon.core.ReliablePacketManager
-
Constructor Summary
ConstructorsConstructorDescriptionReliablePacketManager(NeonSocket socket, SocketAddress destination, byte clientId, NeonConfig config) -
Method Summary
Modifier and TypeMethodDescriptionvoidacknowledge(short sequence) booleanbooleanisDuplicate(byte senderId, short sequence) voidvoidsendAckFor(short sequence) voidsendReliable(NeonPacket packet) void
-
Constructor Details
-
ReliablePacketManager
public ReliablePacketManager(NeonSocket socket, SocketAddress destination, byte clientId, NeonConfig config)
-
-
Method Details
-
sendReliable
- Throws:
IOException
-
acknowledge
public void acknowledge(short sequence) -
processRetransmissions
- Throws:
IOException
-
isDuplicate
public boolean isDuplicate(byte senderId, short sequence) -
sendAckFor
- Throws:
IOException
-
setOnDeliveryFailed
-
hasPending
public boolean hasPending()
-