|
| LsaContentPublisher (ndn::Face &face, ndn::KeyChain &keyChain, const ndn::security::SigningInfo &signingInfo, const ndn::time::milliseconds &freshnessPeriod, const std::string &content) |
|
virtual size_t | generate (ndn::EncodingBuffer &outBuffer) |
| In a derived class, write the octets into outBuffer. More...
|
|
void | publish (const ndn::Name &prefix) |
| Publish data under the provided prefix. More...
|
|
Definition at line 37 of file lsdb.cpp.
nlsr::LsaContentPublisher::LsaContentPublisher |
( |
ndn::Face & |
face, |
|
|
ndn::KeyChain & |
keyChain, |
|
|
const ndn::security::SigningInfo & |
signingInfo, |
|
|
const ndn::time::milliseconds & |
freshnessPeriod, |
|
|
const std::string & |
content |
|
) |
| |
|
inline |
virtual size_t nlsr::LsaContentPublisher::generate |
( |
ndn::EncodingBuffer & |
outBuffer | ) |
|
|
inlinevirtual |
Publish data under the provided prefix.
Processes whatever is provided from SegmentPublisher::generate, by breaking it into segments of MAX_SEGMENT_SIZE and sending each one individually. The last segment is distinguished by having the final block ID set to a timestamp.
Definition at line 80 of file segment-publisher.hpp.