Class UDPPacket


  • public class UDPPacket
    extends java.lang.Object
    • Field Detail

      • sequence

        private final int sequence
      • alt_sequence

        private final int alt_sequence
      • command

        private final byte command
      • buffer

        private final byte[] buffer
      • unack_in_sequence_count

        private final long unack_in_sequence_count
      • auto_retransmit

        private boolean auto_retransmit
      • sent_count

        private short sent_count
      • resend_count

        private short resend_count
      • received

        private boolean received
      • send_tick_count

        private long send_tick_count
    • Constructor Detail

      • UDPPacket

        protected UDPPacket​(UDPConnection _connection,
                            int[] _sequences,
                            byte _command,
                            byte[] _buffer,
                            long _unack_in_sequence_count)
    • Method Detail

      • getSequence

        protected int getSequence()
      • getAlternativeSequence

        protected int getAlternativeSequence()
      • getCommand

        protected byte getCommand()
      • getBuffer

        protected byte[] getBuffer()
      • getUnAckInSequenceCount

        protected long getUnAckInSequenceCount()
      • isAutoRetransmit

        protected boolean isAutoRetransmit()
      • setAutoRetransmit

        protected void setAutoRetransmit​(boolean b)
      • sent

        protected short sent​(long tick_count)
      • getResendCount

        protected short getResendCount()
      • resent

        protected void resent()
      • getSendTickCount

        protected long getSendTickCount()
      • setHasBeenReceived

        protected void setHasBeenReceived()
      • hasBeenReceived

        protected boolean hasBeenReceived()
      • getSentCount

        protected int getSentCount()
      • getString

        protected java.lang.String getString()