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

public static class SSU2Payload.RelayIntroBlockextends SSU2Payload.Block
Block containing relay introduction data. Used to introduce peers for relayed connections.
  • Field Details

    • d

      private final byte[] d
      The introduction payload.
  • Constructor Details

    • RelayIntroBlock

      public RelayIntroBlock(byte[] data)
      Wrap relay introduction data as a block.
      Parameters:
      data - the introduction bytes, which must be copied out
  • Method Details

    • getDataLength

      public int getDataLength()
      The data length of this block.
      Specified by:
      getDataLength in class SSU2Payload.Block
      Returns:
      the data length
    • writeData

      public int writeData(byte[] tgt, int off)
      Write this block's 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