Package net.i2p.router.transport.udp
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 Summary
Constructors Constructor Description SessionConfirmedReader()
-
Method Summary
Modifier and Type Method Description int
readCurrentFragmentNum()
which fragment is this?int
readCurrentFragmentSize()
long
readFinalFragmentSignedOnTime()
Read the time at which the signature was generated.void
readFinalSignature(byte[] target, int targetOffset, int size)
Read the signature from the final sessionConfirmed packet.void
readFragmentData(byte[] target, int targetOffset)
read the fragment data from the nonterminal sessionConfirmed packetint
readTotalFragmentNum()
how many fragments will there be?Methods inherited from class net.i2p.router.transport.udp.UDPPacketReader.Reader
readExtendedOptions
-
Constructor Details
-
SessionConfirmedReader
public SessionConfirmedReader()
-
-
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
-