Class GoBackNArqData

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

public class GoBackNArqData extends io.netty.buffer.DefaultByteBufHolder implements GoBackNArqMessage
Data message of the Go-Back-N ARQ protocol.
  • Constructor Details

    • GoBackNArqData

      public GoBackNArqData(io.netty.buffer.ByteBuf content)
    • GoBackNArqData

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

    • sequenceNo

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

      public String toString()
      Overrides:
      toString in class io.netty.buffer.DefaultByteBufHolder
    • 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