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
parse out the confirmed message
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
which fragment is this?int
long
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
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
-