|
| Nlsr (boost::asio::io_service &ioService, ndn::Scheduler &scheduler, ndn::Face &face, ndn::KeyChain &keyChain) |
|
void | registrationFailed (const ndn::Name &name) |
|
void | onRegistrationSuccess (const ndn::Name &name) |
|
void | setInfoInterestFilter () |
|
void | setLsaInterestFilter () |
|
void | addDispatcherTopPrefix (const ndn::Name &topPrefix) |
| Add top level prefixes for Dispatcher. More...
|
|
void | startEventLoop () |
|
std::string | getConfFileName () const |
|
void | setConfFileName (const std::string &fileName) |
|
ConfParameter & | getConfParameter () |
|
const ConfParameter & | getConfParameter () const |
|
AdjacencyList & | getAdjacencyList () |
|
const AdjacencyList & | getAdjacencyList () const |
|
NamePrefixList & | getNamePrefixList () |
|
const NamePrefixList & | getNamePrefixList () const |
|
ndn::Face & | getNlsrFace () |
|
Lsdb & | getLsdb () |
|
RoutingTable & | getRoutingTable () |
|
NamePrefixTable & | getNamePrefixTable () |
|
Fib & | getFib () |
|
long int | getAdjBuildCount () |
|
void | incrementAdjBuildCount () |
|
void | setAdjBuildCount (int64_t abc) |
|
bool | getIsBuildAdjLsaSheduled () |
|
void | setIsBuildAdjLsaSheduled (bool iabls) |
|
bool | getIsRoutingTableCalculating () |
|
void | setIsRoutingTableCalculating (bool irtc) |
|
bool | getIsRouteCalculationScheduled () |
|
void | setIsRouteCalculationScheduled (bool ircs) |
|
DatasetInterestHandler & | getDatasetHandler () |
|
void | initialize () |
|
void | initializeFaces (const FetchDatasetCallback &onFetchSuccess, const FetchDatasetTimeoutCallback &onFetchFailure) |
| Initializes neighbors' Faces using information from NFD. More...
|
|
void | onFaceDatasetFetchTimeout (uint32_t code, const std::string &reason, uint32_t nRetriesSoFar) |
|
void | processFaceDataset (const std::vector< ndn::nfd::FaceStatus > &faces) |
| Consumes a Face StatusDataset to configure NLSR neighbors. More...
|
|
void | registerAdjacencyPrefixes (const Adjacent &adj, const ndn::time::milliseconds &timeout) |
| Registers NLSR-specific prefixes for a neighbor (Adjacent) More...
|
|
void | loadCertToPublish (const ndn::security::v2::Certificate &certificate) |
| Add a certificate NLSR claims to be authoritative for to the certificate store. More...
|
|
void | connectToFetcher (ndn::util::SegmentFetcher &fetcher) |
|
void | afterFetcherSignalEmitted (const ndn::Data &lsaSegment) |
| Callback when SegmentFetcher retrieves a segment. More...
|
|
void | publishCertFromCache (const ndn::Name &keyName) |
| Retrieves the chain of certificates from Validator's cache and store them in Nlsr's own CertificateStore. More...
|
|
void | initializeKey () |
|
void | loadValidator (boost::property_tree::ptree section, const std::string &filename) |
|
ndn::security::ValidatorConfig & | getValidator () |
|
const ndn::security::v2::Certificate * | getCertificate (const ndn::Name &certificateKeyName) |
| Find a certificate. More...
|
|
ndn::security::v2::KeyChain & | getKeyChain () |
|
const ndn::Name & | getDefaultCertName () |
|
const ndn::security::SigningInfo & | getSigningInfo () |
|
update::PrefixUpdateProcessor & | getPrefixUpdateProcessor () |
|
update::NfdRibCommandProcessor & | getNfdRibCommandProcessor () |
|
ndn::mgmt::Dispatcher & | getDispatcher () |
|
void | setStrategies () |
|
uint32_t | getFirstHelloInterval () const |
|
void | canonizeNeighborUris (std::list< Adjacent >::iterator currentNeighbor, std::function< void(std::list< Adjacent >::iterator)> then, std::function< void(void)> finally) |
| Canonize the URI for this and all proceeding neighbors in a list. More...
|
|
StatsCollector & | getStatsCollector () |
|
Definition at line 67 of file nlsr.hpp.
void nlsr::Nlsr::canonizeNeighborUris |
( |
std::list< Adjacent >::iterator |
currentNeighbor, |
|
|
std::function< void(std::list< Adjacent >::iterator)> |
then, |
|
|
std::function< void(void)> |
finally |
|
) |
| |
Canonize the URI for this and all proceeding neighbors in a list.
This function canonizes the URI of the Adjacent object pointed to by currentNeighbor. It then executes the then callback, providing the next iterator in the list to the callback. A standard invocation would be to pass the begin() iterator of NLSR's adjacency list, and to provide Nlsr::canonizeContinuation as the callback. Because every URI must be canonical before we begin operations, the canonize function provides a finally() function to resume whatever needs to occur.
- See also
- Nlsr::canonizeContinuation
-
Nlsr::initialize
-
NlsrRunner::run
Definition at line 162 of file nlsr.cpp.