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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intreadCurrentFragmentNum()which fragment is this?intreadCurrentFragmentSize()longreadFinalFragmentSignedOnTime()Read the time at which the signature was generated.voidreadFinalSignature(byte[] target, int targetOffset, int size)Read the signature from the final sessionConfirmed packet.voidreadFragmentData(byte[] target, int targetOffset)read the fragment data from the nonterminal sessionConfirmed packetintreadTotalFragmentNum()how many fragments will there be?-
Methods inherited from class net.i2p.router.transport.udp.UDPPacketReader.Reader
readExtendedOptions
-
-
-
-
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
-
-