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
Help read the SessionCreated payload
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
readEncryptedSignature
(byte[] target, int targetOffset, int size) void
readIP
(byte[] target, int targetOffset) what IP do they think we are coming on?int
sizeof(IP)void
readIV
(byte[] target, int targetOffset) int
readPort()
what port do they think we are coming from?long
read in the 4 byte relayAs taglong
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:
-
-
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)
-