#include <rib-status-publisher.hpp>
Public Member Functions | |
RibStatusPublisher (const Rib &rib, ndn::Face &face, const Name &prefix, ndn::KeyChain &keyChain) | |
virtual | ~RibStatusPublisher () |
Public Member Functions inherited from nfd::SegmentPublisher< ndn::Face > | |
SegmentPublisher (ndn::Face &face, const Name &prefix, ndn::KeyChain &keyChain, const time::milliseconds &freshnessPeriod=getDefaultFreshness()) | |
virtual | ~SegmentPublisher () |
void | publish () |
Protected Member Functions | |
virtual size_t | generate (ndn::EncodingBuffer &outBuffer) |
In a derived class, write the octets into outBuffer. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from nfd::SegmentPublisher< ndn::Face > | |
static size_t | getMaxSegmentSize () |
static constexpr time::milliseconds | getDefaultFreshness () |
Definition at line 37 of file rib-status-publisher.hpp.
nfd::rib::RibStatusPublisher::RibStatusPublisher | ( | const Rib & | rib, |
ndn::Face & | face, | ||
const Name & | prefix, | ||
ndn::KeyChain & | keyChain | ||
) |
Definition at line 38 of file rib-status-publisher.cpp.
|
virtual |
Definition at line 47 of file rib-status-publisher.cpp.
|
protectedvirtual |
In a derived class, write the octets into outBuffer.
Implements nfd::SegmentPublisher< ndn::Face >.
Definition at line 52 of file rib-status-publisher.cpp.
References ndn::nfd::RibEntry::addRoute(), nfd::rib::Rib::begin(), nfd::rib::Rib::end(), nfd::rib::RibEntry::getName(), NFD_LOG_DEBUG, ndn::time::steady_clock::now(), ndn::nfd::Route::setCost(), ndn::nfd::Route::setExpirationPeriod(), ndn::nfd::Route::setFaceId(), ndn::nfd::Route::setFlags(), ndn::nfd::RibEntry::setName(), ndn::nfd::Route::setOrigin(), and ndn::nfd::RibEntry::wireEncode().