Class UDPPacketReader.SessionConfirmedReader

java.lang.Object
net.i2p.router.transport.udp.UDPPacketReader.Reader
net.i2p.router.transport.udp.UDPPacketReader.SessionConfirmedReader
Enclosing class:
UDPPacketReader

public class UDPPacketReader.SessionConfirmedReader
extends UDPPacketReader.Reader
parse out the confirmed message
  • Constructor Details

  • Method Details

    • 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