31 : m_scheduler(m_ioService)
33 , m_nlsr(m_ioService, m_scheduler, m_face, m_keyChain)
43 if (!configProcessor.processConfFile()) {
44 BOOST_THROW_EXCEPTION(
Error(
"Error in configuration file processing! Exiting from NLSR"));
52 [
this] (std::list<Adjacent>::iterator iterator) {
53 m_nlsr.canonizeContinuation(iterator, [
this] {
63 catch (
const std::exception& e) {
65 std::cerr <<
"ERROR: " << e.what() << std::endl;
74 std::cout <<
"Usage: " << programName <<
" [OPTIONS...]" << std::endl;
75 std::cout <<
" NDN routing...." << std::endl;
76 std::cout <<
" -f <FILE> Specify configuration file name" << std::endl;
77 std::cout <<
" -V Display version information" << std::endl;
78 std::cout <<
" -h Display this help message" << std::endl;
std::string getConfFileName() const
Copyright (c) 2014-2018, The University of Memphis, Regents of the University of California.
#define INIT_LOGGER(name)
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.
AdjacencyList & getAdjacencyList()
NlsrRunner(std::string &configFileName)
void clean()
Remove all entries from the FIB.
void setConfFileName(const std::string &fileName)
A class containing methods to parse an NLSR configuration file.
Copyright (c) 2014-2018, The University of Memphis, Regents of the University of California, Arizona Board of Regents.
void run()
Instantiate, configure, and start the NLSR process.
static void printUsage(const std::string &programName)
#define NLSR_LOG_FATAL(x)
std::list< Adjacent > & getAdjList()