java.lang.Object
net.i2p.router.transport.udp.SSU2Payload.Block
net.i2p.router.transport.udp.SSU2Payload.RelayTagRequestBlock
Enclosing class:
SSU2Payload

public static class SSU2Payload.RelayTagRequestBlockextends SSU2Payload.Block
Block containing relay tag request data. Used to request relay tags for session establishment.
  • 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:
      getDataLength in class SSU2Payload.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:
      writeData in class SSU2Payload.Block
      Parameters:
      tgt - target array to write to
      off - offset in the target array
      Returns:
      the new offset after writing