Computes FibUpdates based on updates to the RIB and sends them to NFD. More...
#include <daemon/rib/fib-updater.hpp>
Classes | |
class | Error |
Public Types | |
using | FibUpdateFailureCallback = std::function< void(uint32_t code, const std::string &error)> |
using | FibUpdateList = std::list< FibUpdate > |
using | FibUpdateSuccessCallback = std::function< void(RibUpdateList inheritedRoutes)> |
Public Member Functions | |
FibUpdater (Rib &rib, ndn::nfd::Controller &controller) | |
void | computeAndSendFibUpdates (const RibUpdateBatch &batch, const FibUpdateSuccessCallback &onSuccess, const FibUpdateFailureCallback &onFailure) |
Computes FibUpdates using the provided RibUpdateBatch and then sends the updates to NFD's FIB. More... | |
Computes FibUpdates based on updates to the RIB and sends them to NFD.
Definition at line 41 of file fib-updater.hpp.
using nfd::rib::FibUpdater::FibUpdateFailureCallback = std::function<void(uint32_t code, const std::string& error)> |
Definition at line 52 of file fib-updater.hpp.
using nfd::rib::FibUpdater::FibUpdateList = std::list<FibUpdate> |
Definition at line 50 of file fib-updater.hpp.
using nfd::rib::FibUpdater::FibUpdateSuccessCallback = std::function<void(RibUpdateList inheritedRoutes)> |
Definition at line 51 of file fib-updater.hpp.
nfd::rib::FibUpdater::FibUpdater | ( | Rib & | rib, |
ndn::nfd::Controller & | controller | ||
) |
Definition at line 40 of file fib-updater.cpp.
void nfd::rib::FibUpdater::computeAndSendFibUpdates | ( | const RibUpdateBatch & | batch, |
const FibUpdateSuccessCallback & | onSuccess, | ||
const FibUpdateFailureCallback & | onFailure | ||
) |
Computes FibUpdates using the provided RibUpdateBatch and then sends the updates to NFD's FIB.
Definition at line 48 of file fib-updater.cpp.