|
NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
|
API Documentation
|
Go to the documentation of this file.
26 static_assert(std::is_base_of<tlv::Error, MetadataObject::Error>::value,
27 "MetadataObject::Error must inherit from tlv::Error");
52 optional<uint64_t> version,
53 time::milliseconds freshnessPeriod)
const
57 " is not a valid discovery Interest name"));
62 Data data(discoveryInterestName);
65 keyChain.
sign(data, si);
73 m_versionedName =
name;
81 name[-2].isVersion() &&
name[-1].isSegment();
89 .setMustBeFresh(
true);
uint32_t getContentType() const
const name::Component KEYWORD_METADATA_COMP
Signing parameters passed to KeyChain.
const Block & getContent() const
Get Content.
NDN_CXX_NODISCARD bool empty() const
Checks if the name is empty, i.e.
const Name & getName() const
Get name.
Represents an absolute name.
const Block & get(uint32_t type) const
Return the first sub-element of the specified TLV-TYPE.
void wireDecode(const Block &wire)
Decode name from wire encoding.
Name & appendVersion(optional< uint64_t > version=nullopt)
Append a version component.
The interface of signing key management.
size_t wireEncode(EncodingImpl< TAG > &encoder) const
Fast encoding or block size estimation.
Data & setContent(const Block &block)
Set Content from a block.
Data & setFreshnessPeriod(time::milliseconds freshnessPeriod)
@ ContentType_Blob
payload
Represents an Interest packet.
void toUri(std::ostream &os, name::UriFormat format=name::UriFormat::DEFAULT) const
Write URI representation of the name to the output stream.
void parse() const
Parse TLV-VALUE into sub-elements.
Represents a Data packet.
Represents a name component.
std::string to_string(const T &val)
Name & appendSegment(uint64_t segmentNo)
Append a segment number (sequential) component.
void sign(Data &data, const SigningInfo ¶ms=getDefaultSigningInfo())
Sign data according to the supplied signing information.
Copyright (c) 2011-2015 Regents of the University of California.