Class ReliablePacketManager

java.lang.Object
com.quietterminal.neon.core.ReliablePacketManager

public final class ReliablePacketManager extends Object
  • Constructor Details

  • Method Details

    • sendReliable

      public void sendReliable(NeonPacket packet) throws IOException
      Throws:
      IOException
    • acknowledge

      public void acknowledge(short sequence)
    • processRetransmissions

      public void processRetransmissions() throws IOException
      Throws:
      IOException
    • isDuplicate

      public boolean isDuplicate(byte senderId, short sequence)
    • sendAckFor

      public void sendAckFor(short sequence) throws IOException
      Throws:
      IOException
    • setOnDeliveryFailed

      public void setOnDeliveryFailed(Consumer<Short> cb)
    • hasPending

      public boolean hasPending()