Data abstraction for LsaInfo.
More...
#include <lsa-info.hpp>
Data abstraction for LsaInfo.
LsaInfo := LSA-TYPE TLV-LENGTH OriginRouter SequenceNumber ExpirationPeriod?
- See also
- https://redmine.named-data.net/projects/nlsr/wiki/LSDB_DataSet
Definition at line 47 of file lsa-info.hpp.
nlsr::tlv::LsaInfo::LsaInfo |
( |
| ) |
|
nlsr::tlv::LsaInfo::LsaInfo |
( |
const ndn::Block & |
block | ) |
|
|
explicit |
const ndn::time::milliseconds& nlsr::tlv::LsaInfo::getExpirationPeriod |
( |
| ) |
const |
|
inline |
const ndn::Name& nlsr::tlv::LsaInfo::getOriginRouter |
( |
| ) |
const |
|
inline |
uint64_t nlsr::tlv::LsaInfo::getSequenceNumber |
( |
| ) |
const |
|
inline |
bool nlsr::tlv::LsaInfo::hasInfiniteExpirationPeriod |
( |
| ) |
const |
|
inline |
LsaInfo& nlsr::tlv::LsaInfo::setExpirationPeriod |
( |
const ndn::time::milliseconds & |
expirationPeriod | ) |
|
|
inline |
LsaInfo& nlsr::tlv::LsaInfo::setOriginRouter |
( |
const ndn::Name & |
name | ) |
|
|
inline |
LsaInfo& nlsr::tlv::LsaInfo::setSequenceNumber |
( |
uint64_t |
sequenceNumber | ) |
|
|
inline |
void nlsr::tlv::LsaInfo::wireDecode |
( |
const ndn::Block & |
wire | ) |
|
Populate this object by decoding the one contained in the given block.
Definition at line 100 of file lsa-info.cpp.
template<ndn::encoding::Tag TAG>
size_t nlsr::tlv::LsaInfo::wireEncode |
( |
ndn::EncodingImpl< TAG > & |
block | ) |
const |
Encodes LSA info using the method in TAG.
This function will TLV-format LSA info using the implementation speciifed by TAG. Usually this is called with an estimator first to guess how long the buffer needs to be, then with an encoder to do the real work. This process is automated by the other wireEncode.
- See also
- LsaInfo::wireEncode()
Definition at line 52 of file lsa-info.cpp.
const ndn::Block & nlsr::tlv::LsaInfo::wireEncode |
( |
| ) |
const |
Create a TLV encoding of this object.
Create a block containing the TLV encoding of this object. That involves two steps: estimating the size that the information will take up, and then creating a buffer of that size and encoding the information into it. Both steps are accomplished by LsaInfo::wireEncode(ndn::EncodingImpl<TAG>&)
Definition at line 82 of file lsa-info.cpp.
const ndn::time::milliseconds nlsr::tlv::LsaInfo::INFINITE_EXPIRATION_PERIOD |
|
static |