Package net.i2p.router.transport.udp
Class UDPPacketReader.SessionCreatedReader
java.lang.Object
net.i2p.router.transport.udp.UDPPacketReader.Reader
net.i2p.router.transport.udp.UDPPacketReader.SessionCreatedReader
- Enclosing class:
- UDPPacketReader
public class UDPPacketReader.SessionCreatedReader extends UDPPacketReader.Reader
Help read the SessionCreated payload
-
Field Summary
Fields Modifier and Type Field Description static int
Y_LENGTH
-
Constructor Summary
Constructors Constructor Description SessionCreatedReader()
-
Method Summary
Modifier and Type Method Description void
readEncryptedSignature(byte[] target, int targetOffset, int size)
void
readIP(byte[] target, int targetOffset)
what IP do they think we are coming on?int
readIPSize()
sizeof(IP)void
readIV(byte[] target, int targetOffset)
int
readPort()
what port do they think we are coming from?long
readRelayTag()
read in the 4 byte relayAs taglong
readSignedOnTime()
void
readY(byte[] target, int targetOffset)
Methods inherited from class net.i2p.router.transport.udp.UDPPacketReader.Reader
readExtendedOptions
-
Field Details
-
Y_LENGTH
public static final int Y_LENGTH- See Also:
- Constant Field Values
-
-
Constructor Details
-
SessionCreatedReader
public SessionCreatedReader()
-
-
Method Details
-
readY
public void readY(byte[] target, int targetOffset) -
readIPSize
public int readIPSize()sizeof(IP) -
readIP
public void readIP(byte[] target, int targetOffset)what IP do they think we are coming on? -
readPort
public int readPort()what port do they think we are coming from? -
readRelayTag
public long readRelayTag()read in the 4 byte relayAs tag -
readSignedOnTime
public long readSignedOnTime() -
readEncryptedSignature
public void readEncryptedSignature(byte[] target, int targetOffset, int size)- Parameters:
size
- the amount to be copied, including padding to mod 16
-
readIV
public void readIV(byte[] target, int targetOffset)
-