Class GoBackNArqLastData

java.lang.Object
io.netty.buffer.DefaultByteBufHolder
org.drasyl.handler.arq.gobackn.GoBackNArqData
org.drasyl.handler.arq.gobackn.GoBackNArqLastData
All Implemented Interfaces:
io.netty.buffer.ByteBufHolder, io.netty.util.ReferenceCounted, GoBackNArqMessage

public class GoBackNArqLastData extends GoBackNArqData
Last data message of the Go-Back-N ARQ protocol. This message enforces a timely ACK.
  • Field Details

  • Constructor Details

    • GoBackNArqLastData

      public GoBackNArqLastData(UnsignedInteger sequenceNo, io.netty.buffer.ByteBuf content)
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class GoBackNArqData
    • sequenceNo

      public UnsignedInteger sequenceNo()
      Specified by:
      sequenceNo in interface GoBackNArqMessage
      Returns:
      message's sequence number
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class io.netty.buffer.DefaultByteBufHolder
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class io.netty.buffer.DefaultByteBufHolder