java.lang.Object
net.i2p.router.tunnel.pool.BuildReplyHandler.Result
Enclosing class:
BuildReplyHandler

public static class BuildReplyHandler.Resultextends Object
This contains the result of decrypting the build request or reply record, including the decrypted properties field, if present.

For requests, the code is 0 if the decrypt was successful or -1 if the record was not found or the decrypt failed.

For replies, the code is from the reply record, 0-255. The code is usually 0 for ACCEPT or 30 for REJECT_BANDWIDTH. The code is -1 if the record was not found or the decrypt failed.

The Properties is usually null, but if non-null, will contain bandwidth request/reply options as specified in proposal 168, or other options to be defined later.

If the code is -1, or it's a non-ECIES build record, or the properties field in the record was empty, the returned properties here will be null.

  • Field Details

    • code

      public final int code
      The result code.
    • props

      public final Properties props
      The properties, or null.
  • Constructor Details

    • Result

      public Result(int c, Properties p)
      Create a new Result.
      Parameters:
      c - 0-255 or -1
      p - may be null