readvertise a subset of routes to a destination according to a policy More...
#include <readvertise.hpp>
Public Member Functions | |
Readvertise (Rib &rib, ndn::util::Scheduler &scheduler, unique_ptr< ReadvertisePolicy > policy, unique_ptr< ReadvertiseDestination > destination) | |
readvertise a subset of routes to a destination according to a policy
The Readvertise class allows RIB routes to be readvertised to a destination such as a routing protocol daemon or another NFD-RIB. It monitors the RIB for route additions and removals, asks the ReadvertisePolicy to make decision on whether to readvertise each new route and what prefix to readvertise as, and invokes a ReadvertiseDestination to send the commands.
Definition at line 44 of file readvertise.hpp.
nfd::rib::Readvertise::Readvertise | ( | Rib & | rib, |
ndn::util::Scheduler & | scheduler, | ||
unique_ptr< ReadvertisePolicy > | policy, | ||
unique_ptr< ReadvertiseDestination > | destination | ||
) |
Definition at line 46 of file readvertise.cpp.
References nfd::rib::Rib::afterAddRoute, and nfd::rib::Rib::beforeRemoveRoute.