All Implemented Interfaces:
Job

class DirectLookupJobextends FloodOnlySearchJob
Ask a connected peer for his RI. Modified from SingleSearchJob.

Mainly for older routers. As of 0.9.55, transports will periodically send their RI. Some old routers may not respond or may send DSRM, e.g. if hidden (and i2pd?).

  • Field Details

    • _onm

      private OutNetMessage _onm
      The lookup message awaiting a reply.
    • _oldRI

      private final RouterInfo _oldRI
      The entry as it was before the lookup.
    • TIMEOUT

      private static final int TIMEOUT
      How long to wait for the reply - 8 seconds.
      See Also:
  • Constructor Details

    • DirectLookupJob

      public DirectLookupJob(RouterContext ctx, FloodfillNetworkDatabaseFacade facade, Hash peer, RouterInfo oldRI, Job onFind, Job onFail)
      Request is sent to; if null the job fails without sending anything.
      Parameters:
      ctx - the router context
      facade - the floodfill network database facade to report completion to
      peer - for Router Info only
      oldRI - the RouterInfo whose freshness triggered this lookup, and the address the
      onFind - job to run on a successful find
      onFail - job to run if the peer does not answer before the timeout
  • Method Details