java.lang.Object
net.i2p.router.transport.udp.SSU2Payload.Block
net.i2p.router.transport.udp.SSU2Payload.RelayTagRequestBlock
- Enclosing class:
SSU2Payload
Block containing relay tag request data. Used to request relay tags for session establishment.
Constructor Summary
ConstructorsMethod Summary
All MethodsModifier and TypeMethodDescriptionintReturn zero (no data payload).intwriteData(byte[] tgt, int off) Write the relay tag request block data to the target array.Methods inherited from class SSU2Payload.Block
getTotalLength, getType, toString, write
Constructor Details
RelayTagRequestBlock
public RelayTagRequestBlock()Create a relay tag request block (no data payload).
Method Details
getDataLength
public int getDataLength()Return zero (no data payload).- Specified by:
getDataLengthin classSSU2Payload.Block- Returns:
- the data length
writeData
public int writeData(byte[] tgt, int off) Write the relay tag request block data to the target array.- Specified by:
writeDatain classSSU2Payload.Block- Parameters:
tgt- target array to write tooff- offset in the target array- Returns:
- the new offset after writing