OverSim
|
This class holds the lookup configuration. More...
#include <IterativeLookupConfiguration.h>
Public Attributes | |
int | redundantNodes |
number of next hops in each step | |
int | parallelPaths |
number of parallel paths | |
int | parallelRpcs |
number of nodes to ask in parallel | |
bool | strictParallelRpcs |
limited the number of concurrent RPCS to parameter parallelRpcs | |
bool | useAllParallelResponses |
merge all parallel responses from earlier steps | |
bool | newRpcOnEveryTimeout |
send a new RPC immediately after an RPC timeouts | |
bool | newRpcOnEveryResponse |
send a new RPC after every response, even if there was no progress | |
bool | finishOnFirstUnchanged |
finish lookup, if the last pending RPC returned without progress | |
bool | verifySiblings |
true, if siblings need to be authenticated with a ping | |
bool | majoritySiblings |
true, if sibling candidates are selected by a majority decision if using parallel paths | |
bool | merge |
true, if parallel RPCs results should be merged | |
bool | failedNodeRpcs |
communicate failed nodes | |
bool | visitOnlyOnce |
if true, the same node is never asked twice during a single lookup | |
bool | acceptLateSiblings |
if true, a FindNodeResponse with sibling flag set is always accepted, even if it is from a previous lookup step |
This class holds the lookup configuration.
Definition at line 32 of file IterativeLookupConfiguration.h.
bool IterativeLookupConfiguration::acceptLateSiblings |
if true, a FindNodeResponse with sibling flag set is always accepted, even if it is from a previous lookup step
Definition at line 48 of file IterativeLookupConfiguration.h.
Referenced by IterativeLookup::handleRpcResponse().
bool IterativeLookupConfiguration::failedNodeRpcs |
communicate failed nodes
Definition at line 46 of file IterativeLookupConfiguration.h.
Referenced by IterativePathLookup::handleTimeout().
bool IterativeLookupConfiguration::finishOnFirstUnchanged |
finish lookup, if the last pending RPC returned without progress
Definition at line 42 of file IterativeLookupConfiguration.h.
Referenced by IterativePathLookup::sendRpc().
bool IterativeLookupConfiguration::majoritySiblings |
true, if sibling candidates are selected by a majority decision if using parallel paths
Definition at line 44 of file IterativeLookupConfiguration.h.
Referenced by IterativeLookup::checkStop(), and IterativeLookup::IterativeLookup().
bool IterativeLookupConfiguration::merge |
true, if parallel RPCs results should be merged
Definition at line 45 of file IterativeLookupConfiguration.h.
Referenced by IterativePathLookup::accepts(), IterativePathLookup::add(), IterativePathLookup::handleResponse(), and IterativeLookup::IterativeLookup().
bool IterativeLookupConfiguration::newRpcOnEveryResponse |
send a new RPC after every response, even if there was no progress
Definition at line 41 of file IterativeLookupConfiguration.h.
Referenced by IterativePathLookup::handleResponse().
bool IterativeLookupConfiguration::newRpcOnEveryTimeout |
send a new RPC immediately after an RPC timeouts
Definition at line 40 of file IterativeLookupConfiguration.h.
Referenced by IterativePathLookup::sendNewRpcAfterTimeout().
int IterativeLookupConfiguration::parallelPaths |
number of parallel paths
Definition at line 36 of file IterativeLookupConfiguration.h.
Referenced by IterativeLookup::addSibling(), IterativeLookup::checkStop(), IterativeLookup::IterativeLookup(), and IterativeLookup::start().
int IterativeLookupConfiguration::parallelRpcs |
number of nodes to ask in parallel
Definition at line 37 of file IterativeLookupConfiguration.h.
Referenced by IterativePathLookup::handleResponse(), IterativePathLookup::sendNewRpcAfterTimeout(), IterativePathLookup::sendRpc(), and IterativeLookup::start().
int IterativeLookupConfiguration::redundantNodes |
number of next hops in each step
Definition at line 35 of file IterativeLookupConfiguration.h.
Referenced by IterativeLookup::createFindNodeCall(), Kademlia::handleBucketRefreshTimerExpired(), IterativePathLookup::handleResponse(), Kademlia::initializeOverlay(), IterativePathLookup::IterativePathLookup(), IterativeLookup::lookup(), and IterativePathLookup::sendRpc().
bool IterativeLookupConfiguration::strictParallelRpcs |
limited the number of concurrent RPCS to parameter parallelRpcs
Definition at line 38 of file IterativeLookupConfiguration.h.
Referenced by IterativePathLookup::sendRpc().
bool IterativeLookupConfiguration::useAllParallelResponses |
merge all parallel responses from earlier steps
Definition at line 39 of file IterativeLookupConfiguration.h.
Referenced by IterativePathLookup::accepts().
bool IterativeLookupConfiguration::verifySiblings |
true, if siblings need to be authenticated with a ping
Definition at line 43 of file IterativeLookupConfiguration.h.
Referenced by IterativeLookup::addSibling(), and IterativeLookup::IterativeLookup().
bool IterativeLookupConfiguration::visitOnlyOnce |
if true, the same node is never asked twice during a single lookup
Definition at line 47 of file IterativeLookupConfiguration.h.
Referenced by IterativePathLookup::sendRpc().