Class UDPPacketReader.SessionConfirmedReader

    • Constructor Detail

      • SessionConfirmedReader

        public SessionConfirmedReader()
    • Method Detail

      • readCurrentFragmentNum

        public int readCurrentFragmentNum()
        which fragment is this?
      • readTotalFragmentNum

        public int readTotalFragmentNum()
        how many fragments will there be?
      • readCurrentFragmentSize

        public int readCurrentFragmentSize()
      • readFragmentData

        public void readFragmentData​(byte[] target,
                                     int targetOffset)
        read the fragment data from the nonterminal sessionConfirmed packet
      • readFinalFragmentSignedOnTime

        public long readFinalFragmentSignedOnTime()
        Read the time at which the signature was generated. TODO must be completely in final fragment. Time and sig cannot be split across fragments.
      • readFinalSignature

        public void readFinalSignature​(byte[] target,
                                       int targetOffset,
                                       int size)
        Read the signature from the final sessionConfirmed packet. TODO must be completely in final fragment. Time and sig cannot be split across fragments.
        Parameters:
        size - not including padding