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

public static class SSU2Payload.RelayTagBlockextends SSU2Payload.Block
Block containing relay tag data. Used to identify relay sessions.
  • Field Details

    • t

      private final long t
      The relay tag being introduced.
  • Constructor Details

    • RelayTagBlock

      public RelayTagBlock(long tag)
      Create a relay tag block.
      Parameters:
      tag - the relay tag value
  • Method Details

    • getDataLength

      public int getDataLength()
      Return the 4 byte relay tag data length.
      Specified by:
      getDataLength in class SSU2Payload.Block
      Returns:
      the data length
    • writeData

      public int writeData(byte[] tgt, int off)
      Write the relay tag 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