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

public static class SSU2Payload.OptionsBlockextends SSU2Payload.Block
Block containing session options. Used to negotiate session parameters.
  • Field Details

    • opts

      private final byte[] opts
      The advertised option bytes.
  • Constructor Details

    • OptionsBlock

      public OptionsBlock(byte[] options)
      Create an options block.
      Parameters:
      options - the option data
  • Method Details

    • getDataLength

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

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