nlsr::NlsrRunner Class Reference

A wrapper class to instantiate and configure an NLSR object. More...

#include <nlsr-runner.hpp>

Public Member Functions

 NlsrRunner (ndn::Face &face, ConfParameter &confParam)
 
void run ()
 Instantiate, configure, and start the NLSR process. More...
 

Detailed Description

A wrapper class to instantiate and configure an NLSR object.

As its name suggests, this class is responsible for running NLSR. It creates an nlsr::ConfFileProcessor to read a configuration file and uses that to configure and then start an NLSR process. This class only exists to provide this functionality, and there is no special reliance of NLSR on this class.

Definition at line 41 of file nlsr-runner.hpp.

Constructor & Destructor Documentation

nlsr::NlsrRunner::NlsrRunner ( ndn::Face &  face,
ConfParameter confParam 
)
explicit

Definition at line 26 of file nlsr-runner.cpp.

Member Function Documentation

void nlsr::NlsrRunner::run ( )

Instantiate, configure, and start the NLSR process.

Each NlsrRunner is uniquely paired to the Face it's instantiated with. This is not a factory-type class, but a one-to-one relationship. If one wants to create multiple NLSR classes, multiple NLSR runners need to be created, too.

Exceptions
ConfFileErrorThe configuration file cannot be processed. NLSR is not started.
See also
Nlsr::canonizeNeighborUris

Definition at line 34 of file nlsr-runner.cpp.

Here is the call graph for this function:

Here is the caller graph for this function: