Namespaces | |
| command_interest | |
| detail | |
| dns | |
| encoding | |
| ethernet | |
| io | |
| literals | |
| lp | |
| mgmt | |
| name | |
| net | |
| nfd | |
| random | |
| security | |
| signed_interest | |
| time | |
| tlv | |
| Namespace defining NDN Packet Format related constants and procedures. | |
| util | |
Classes | |
| class | AsHex |
| Helper class to convert a number to hexadecimal format, for use with stream insertion operators. More... | |
| class | Block |
| Represents a TLV element of NDN packet format. More... | |
| class | Buffer |
| General-purpose automatically managed/resized buffer. More... | |
| class | ConfigFile |
| System configuration file for NDN platform. More... | |
| class | Data |
| Represents a Data packet. More... | |
| struct | Delegation |
| represents a delegation More... | |
| class | DelegationList |
| represents a list of Delegations More... | |
| class | DigestSha256 |
| Represents a signature of DigestSha256 type. More... | |
| class | Exclude |
| Represents Exclude selector in NDN Interest. More... | |
| class | Face |
| Provide a communication channel with local or remote NDN forwarder. More... | |
| class | FaceUri |
| represents the underlying protocol and address used by a Face More... | |
| class | InMemoryStorage |
| Represents in-memory storage. More... | |
| class | InMemoryStorageEntry |
| Represents an in-memory storage entry. More... | |
| class | InMemoryStorageFifo |
| Provides in-memory storage employing First-In-First-Out (FIFO) replacement policy. More... | |
| class | InMemoryStorageLfu |
| Provides an in-memory storage with Least Frequently Used (LFU) replacement policy. More... | |
| class | InMemoryStorageLru |
| Provides in-memory storage employing Least Recently Used (LRU) replacement policy. More... | |
| class | InMemoryStoragePersistent |
| Provides application cache with persistent storage, of which no replacement policy will be employed. More... | |
| class | Interest |
| Represents an Interest packet. More... | |
| class | InterestFilter |
| declares the set of Interests a producer can serve, which starts with a name prefix, plus an optional regular expression More... | |
| class | InterestFilterHandle |
| A handle of registered Interest filter. More... | |
| class | KeyLocator |
| class | KeyParams |
| Base class of key parameters. More... | |
| class | Link |
| represents a Link object More... | |
| class | MetadataObject |
| Class for RDR-style metadata encoding/decoding. More... | |
| class | MetaInfo |
| A MetaInfo holds the meta info which is signed inside the data packet. More... | |
| class | Name |
| Represents an absolute name. More... | |
| class | NotificationStreamItem |
| concept check for an item in a Notification Stream More... | |
| class | OBufferStream |
implements an output stream that constructs ndn::Buffer More... | |
| class | ostream_joiner |
| class | PacketBase |
| base class to allow simple management of packet tags More... | |
| class | PendingInterestHandle |
| A handle of pending Interest. More... | |
| class | PrefixAnnouncement |
| A prefix announcement object that represents an application's intent of registering a prefix toward itself. More... | |
| class | RegexBackrefManager |
| class | RegexBackrefMatcher |
| class | RegexComponentMatcher |
| class | RegexComponentSetMatcher |
| class | RegexMatcher |
| class | RegexPatternListMatcher |
| class | RegexPseudoMatcher |
| class | RegexRepeatMatcher |
| class | RegexTopMatcher |
| class | RegisteredPrefixHandle |
| A handle of registered prefix. More... | |
| class | Selectors |
| Abstraction implementing Interest selectors. More... | |
| class | Signature |
| Holds SignatureInfo and SignatureValue in a Data packet. More... | |
| class | SignatureInfo |
| Represents a SignatureInfo TLV element. More... | |
| class | SignatureSha256WithEcdsa |
| Represents a signature of Sha256WithEcdsa type. More... | |
| class | SignatureSha256WithRsa |
| Represents a signature of Sha256WithRsa type. More... | |
| class | SimplePublicKeyParams |
| SimplePublicKeyParams is a template for public keys with only one parameter: size. More... | |
| class | SimpleSymmetricKeyParams |
| SimpleSymmetricKeyParams is a template for symmetric keys with only one parameter: size. More... | |
| class | SimpleTag |
| provides a tag type for simple types More... | |
| class | StatusDatasetItem |
| concept check for an item in a Status Dataset More... | |
| class | StringHelperError |
| class | Tag |
| Base class for packet tags that can hold any arbitrary information. More... | |
| class | TagHost |
| Base class to store tag information (e.g., inside Interest and Data packets) More... | |
| class | TcpTransport |
| a transport using TCP socket More... | |
| class | Transport |
| provides TLV-block delivery service More... | |
| class | UnixTransport |
| a transport using Unix stream socket More... | |
| class | WireDecodable |
| a concept check for TLV abstraction with .wireDecode method and constructible from Block More... | |
| class | WireEncodable |
| a concept check for TLV abstraction with .wireEncode method More... | |
| class | WireEncodableWithEncodingBuffer |
| a concept check for TLV abstraction with .wireEncode method More... | |
Typedefs | |
| typedef SimpleSymmetricKeyParams< detail::AesKeyParamsInfo > | AesKeyParams |
| AesKeyParams carries parameters for AES key. More... | |
| using | BufferPtr = shared_ptr< Buffer > |
| using | CanonizeProviders = boost::mpl::vector< UdpCanonizeProvider *, TcpCanonizeProvider *, EtherCanonizeProvider *, DevCanonizeProvider *, UdpDevCanonizeProvider * > |
| using | CanonizeProviderTable = std::map< std::string, shared_ptr< CanonizeProvider >> |
| using | ConstBufferPtr = shared_ptr< const Buffer > |
| typedef function< void(const Interest &, const Data &)> | DataCallback |
| Callback invoked when expressed Interest gets satisfied with a Data packet. More... | |
| typedef SimplePublicKeyParams< detail::EcKeyParamsInfo > | EcKeyParams |
| EcKeyParams carries parameters for EC key. More... | |
| typedef function< void(const InterestFilter &, const Interest &)> | InterestCallback |
| Callback invoked when incoming Interest matches the specified InterestFilter. More... | |
| typedef function< void(const Interest &, const lp::Nack &)> | NackCallback |
| Callback invoked when Nack is sent in response to expressed Interest. More... | |
| using | PartialName = Name |
| Represents an arbitrary sequence of name components. More... | |
| typedef RegexTopMatcher | Regex |
| typedef function< void(const Name &, const std::string &)> | RegisterPrefixFailureCallback |
| Callback invoked when registerPrefix or setInterestFilter command fails. More... | |
| typedef function< void(const Name &)> | RegisterPrefixSuccessCallback |
| Callback invoked when registerPrefix or setInterestFilter command succeeds. More... | |
| typedef SimplePublicKeyParams< detail::RsaKeyParamsInfo > | RsaKeyParams |
| RsaKeyParams carries parameters for RSA key. More... | |
| using | ScopedInterestFilterHandle = detail::ScopedCancelHandle |
| A scoped handle of registered Interest filter. More... | |
| using | ScopedPendingInterestHandle = detail::ScopedCancelHandle |
| A scoped handle of pending Interest. More... | |
| using | ScopedRegisteredPrefixHandle = detail::ScopedCancelHandle |
| A scoped handle of registered prefix. More... | |
| typedef function< void(const Interest &)> | TimeoutCallback |
| Callback invoked when expressed Interest times out. More... | |
| typedef function< void(const std::string &)> | UnregisterPrefixFailureCallback |
| Callback invoked when unregisterPrefix or unsetInterestFilter command fails. More... | |
| typedef function< void()> | UnregisterPrefixSuccessCallback |
| Callback invoked when unregisterPrefix or unsetInterestFilter command succeeds. More... | |
Enumerations | |
| enum | AclType { AclType::NONE, AclType::PUBLIC, AclType::PRIVATE } |
| enum | BlockCipherAlgorithm { BlockCipherAlgorithm::NONE, BlockCipherAlgorithm::AES_CBC } |
| enum | CipherOperator { CipherOperator::DECRYPT = 0, CipherOperator::ENCRYPT = 1 } |
| enum | DigestAlgorithm { DigestAlgorithm::NONE = 0, DigestAlgorithm::SHA224 = 2, DigestAlgorithm::SHA256 = 1, DigestAlgorithm::SHA384 = 3, DigestAlgorithm::SHA512 = 4, DigestAlgorithm::BLAKE2B_512 = 10, DigestAlgorithm::BLAKE2S_256 = 11, DigestAlgorithm::SHA3_224 = 20, DigestAlgorithm::SHA3_256 = 21, DigestAlgorithm::SHA3_384 = 22, DigestAlgorithm::SHA3_512 = 23 } |
| enum | KeyClass { KeyClass::NONE, KeyClass::PUBLIC, KeyClass::PRIVATE, KeyClass::SYMMETRIC } |
| enum | KeyIdType { KeyIdType::USER_SPECIFIED = 0, KeyIdType::SHA256 = 1, KeyIdType::RANDOM = 2 } |
| The type of KeyId component in a key name. More... | |
| enum | KeyType { KeyType::NONE = 0, KeyType::RSA = 1, KeyType::EC = 2, KeyType::AES = 128 } |
| The type of a cryptographic key. More... | |
Functions | |
| template<typename T , typename Compare > | |
| constexpr const T & | clamp (const T &v, const T &lo, const T &hi, Compare comp) |
| template<typename T > | |
| constexpr const T & | clamp (const T &v, const T &lo, const T &hi) |
| template size_t | Data::wireEncode< encoding::EncoderTag > (EncodingBuffer &, bool) const |
| template size_t | Data::wireEncode< encoding::EstimatorTag > (EncodingEstimator &, bool) const |
| template size_t | DelegationList::wireEncode< encoding::EncoderTag > (EncodingBuffer &, uint32_t) const |
| template size_t | DelegationList::wireEncode< encoding::EstimatorTag > (EncodingEstimator &, uint32_t) const |
| std::string | escape (const std::string &str) |
| Percent-encode a string. More... | |
| void | escape (std::ostream &os, const char *str, size_t len) |
| template size_t | Exclude::wireEncode<::ndn::encoding::EncoderTag > (::ndn::EncodingBuffer &) const |
| template size_t | Exclude::wireEncode<::ndn::encoding::EstimatorTag > (::ndn::EncodingEstimator &) const |
| template<typename NetPkt > | |
| static void | extractLpLocalFields (NetPkt &netPacket, const lp::Packet &lpPacket) |
| extract local fields from NDNLPv2 packet and tag onto a network layer packet More... | |
| shared_ptr< Buffer > | fromHex (const std::string &hexString) |
| Convert the hex string to buffer. More... | |
| constexpr int | fromHexChar (char c) noexcept |
Convert the hex character c to an integer in [0, 15], or -1 if it's not a hex character. More... | |
| static const CanonizeProvider * | getCanonizeProvider (const std::string &scheme) |
| template size_t | Interest::wireEncode<::ndn::encoding::EncoderTag > (::ndn::EncodingBuffer &) const |
| template size_t | Interest::wireEncode<::ndn::encoding::EstimatorTag > (::ndn::EncodingEstimator &) const |
| template size_t | KeyLocator::wireEncode<::ndn::encoding::EncoderTag > (::ndn::EncodingBuffer &) const |
| template size_t | KeyLocator::wireEncode<::ndn::encoding::EstimatorTag > (::ndn::EncodingEstimator &) const |
| template<typename CharT , typename Traits , typename DelimT > | |
| ostream_joiner< std::decay_t< DelimT >, CharT, Traits > | make_ostream_joiner (std::basic_ostream< CharT, Traits > &os, DelimT &&delimiter) |
| template size_t | MetaInfo::wireEncode<::ndn::encoding::EncoderTag > (::ndn::EncodingBuffer &) const |
| template size_t | MetaInfo::wireEncode<::ndn::encoding::EstimatorTag > (::ndn::EncodingEstimator &) const |
| template size_t | Name::wireEncode<::ndn::encoding::EncoderTag > (::ndn::EncodingBuffer &) const |
| template size_t | Name::wireEncode<::ndn::encoding::EstimatorTag > (::ndn::EncodingEstimator &) const |
| bool | operator!= (const Delegation &lhs, const Delegation &rhs) |
| bool | operator!= (const PrefixAnnouncement &lhs, const PrefixAnnouncement &rhs) |
| bool | operator!= (const Signature &lhs, const Signature &rhs) |
| bool | operator!= (const SignatureInfo &lhs, const SignatureInfo &rhs) |
| bool | operator!= (const DelegationList &lhs, const DelegationList &rhs) |
| bool | operator!= (const Data &lhs, const Data &rhs) |
| bool | operator!= (const Block &lhs, const Block &rhs) |
| bool | operator!= (const Interest &lhs, const Interest &rhs) |
| bool | operator!= (const Name &lhs, const Name &rhs) |
| Block | operator""_block (const char *input, std::size_t len) |
Construct a Block from hexadecimal input. More... | |
| bool | operator< (const Delegation &lhs, const Delegation &rhs) |
| bool | operator< (const Name &lhs, const Name &rhs) |
| std::ostream & | operator<< (std::ostream &os, KeyIdType keyIdType) |
| std::ostream & | operator<< (std::ostream &os, const AsHex &hex) |
| std::ostream & | operator<< (std::ostream &os, KeyType keyType) |
| std::ostream & | operator<< (std::ostream &os, const Delegation &del) |
| std::ostream & | operator<< (std::ostream &os, KeyClass keyClass) |
| std::ostream & | operator<< (std::ostream &os, const InterestFilter &filter) |
| std::ostream & | operator<< (std::ostream &os, DigestAlgorithm algorithm) |
| std::ostream & | operator<< (std::ostream &os, const RegexMatcher &rm) |
| std::ostream & | operator<< (std::ostream &os, const Exclude::Range &range) |
| std::ostream & | operator<< (std::ostream &os, BlockCipherAlgorithm algorithm) |
| std::ostream & | operator<< (std::ostream &os, CipherOperator op) |
| std::ostream & | operator<< (std::ostream &os, const PrefixAnnouncement &pa) |
| Print prefix announcement to a stream. More... | |
| std::ostream & | operator<< (std::ostream &os, AclType aclType) |
| std::ostream & | operator<< (std::ostream &os, const KeyLocator &keyLocator) |
| std::ostream & | operator<< (std::ostream &os, const FaceUri &uri) |
| std::ostream & | operator<< (std::ostream &os, const MetaInfo &info) |
| std::ostream & | operator<< (std::ostream &os, const SignatureInfo &info) |
| std::ostream & | operator<< (std::ostream &os, const DelegationList &dl) |
| std::ostream & | operator<< (std::ostream &os, const Name &name) |
| Print URI representation of a name. More... | |
| std::ostream & | operator<< (std::ostream &os, const Data &data) |
| std::ostream & | operator<< (std::ostream &os, const Exclude &exclude) |
| std::ostream & | operator<< (std::ostream &os, const Block &block) |
| std::ostream & | operator<< (std::ostream &os, const Interest &interest) |
| bool | operator<= (const Delegation &lhs, const Delegation &rhs) |
| bool | operator<= (const Name &lhs, const Name &rhs) |
| bool | operator== (const Delegation &lhs, const Delegation &rhs) |
| bool | operator== (const Exclude::ExcludeComponent &a, const Exclude::ExcludeComponent &b) |
| bool | operator== (const Signature &lhs, const Signature &rhs) |
| bool | operator== (const PrefixAnnouncement &lhs, const PrefixAnnouncement &rhs) |
| Test whether two prefix announcements has the same name, expiration period, and validity period. More... | |
| bool | operator== (const SignatureInfo &lhs, const SignatureInfo &rhs) |
| bool | operator== (const DelegationList &lhs, const DelegationList &rhs) |
| compare whether two DelegationLists are equal More... | |
| bool | operator== (const Data &lhs, const Data &rhs) |
| bool | operator== (const Block &lhs, const Block &rhs) |
| Compare whether two Blocks have same TLV-TYPE, TLV-LENGTH, and TLV-VALUE. More... | |
| bool | operator== (const Name &lhs, const Name &rhs) |
| bool | operator== (const Interest &lhs, const Interest &rhs) |
| bool | operator> (const Exclude::ExcludeComponent &a, const Exclude::ExcludeComponent &b) |
| bool | operator> (const Delegation &lhs, const Delegation &rhs) |
| bool | operator> (const Name &lhs, const Name &rhs) |
| bool | operator>= (const Delegation &lhs, const Delegation &rhs) |
| bool | operator>= (const Name &lhs, const Name &rhs) |
| std::istream & | operator>> (std::istream &is, Name &name) |
| Parse URI from stream as Name. More... | |
| void | printHex (std::ostream &os, uint64_t num, bool wantUpperCase=false) |
Output the hex representation of num to the output stream os. More... | |
| void | printHex (std::ostream &os, const uint8_t *buffer, size_t length, bool wantUpperCase=true) |
Output the hex representation of the bytes in buffer to the output stream os. More... | |
| void | printHex (std::ostream &os, const Buffer &buffer, bool wantUpperCase=true) |
Output the hex representation of the bytes in buffer to the output stream os. More... | |
| template size_t | Selectors::wireEncode<::ndn::encoding::EncoderTag > (::ndn::EncodingBuffer &) const |
| template size_t | Selectors::wireEncode<::ndn::encoding::EstimatorTag > (::ndn::EncodingEstimator &) const |
| template size_t | SignatureInfo::wireEncode<::ndn::encoding::EncoderTag > (::ndn::EncodingBuffer &) const |
| template size_t | SignatureInfo::wireEncode<::ndn::encoding::EstimatorTag > (::ndn::EncodingEstimator &) const |
| template<typename V > | |
| std::string | to_string (const V &v) |
| std::string | toHex (const uint8_t *buffer, size_t length, bool wantUpperCase=true) |
Return a string containing the hex representation of the bytes in buffer. More... | |
| std::string | toHex (const Buffer &buffer, bool wantUpperCase=true) |
Return a string containing the hex representation of the bytes in buffer. More... | |
| constexpr char | toHexChar (unsigned int n, bool wantUpperCase=true) noexcept |
Convert (the least significant nibble of) n to the corresponding hex character. More... | |
| std::string | unescape (const std::string &str) |
| Decode a percent-encoded string. More... | |
| void | unescape (std::ostream &os, const char *str, size_t len) |
Variables | |
| static const uint32_t | AES_KEY_SIZES [] = {128, 192, 256} |
| static const uint32_t | DEFAULT_AES_KEY_SIZE = 128 |
| const int | DEFAULT_CHILD_SELECTOR = 0 |
| static const uint32_t | DEFAULT_EC_KEY_SIZE = 256 |
| const time::milliseconds | DEFAULT_FRESHNESS_PERIOD = time::milliseconds::zero() |
| const time::milliseconds | DEFAULT_INTEREST_LIFETIME = 4_s |
| default value for InterestLifetime More... | |
| static const uint32_t | DEFAULT_RSA_KEY_SIZE = 2048 |
| static const uint32_t | EC_KEY_SIZES [] = {224, 256, 384, 521} |
| const name::Component | KEYWORD_METADATA_COMP = "20 08 6D65746164617461"_block |
| static const name::Component | KEYWORD_PA_COMP = "20025041"_block |
| const size_t | MAX_NDN_PACKET_SIZE = 8800 |
| practical limit of network layer packet size More... | |
| const size_t | MAX_SIZE_OF_BLOCK_FROM_STREAM = MAX_NDN_PACKET_SIZE |
| static const uint32_t | MIN_RSA_KEY_SIZE = 2048 |
AesKeyParams carries parameters for AES key.
Definition at line 284 of file key-params.hpp.
| using ndn::BufferPtr = typedef shared_ptr<Buffer> |
Definition at line 125 of file buffer.hpp.
| using ndn::CanonizeProviders = typedef boost::mpl::vector<UdpCanonizeProvider*, TcpCanonizeProvider*, EtherCanonizeProvider*, DevCanonizeProvider*, UdpDevCanonizeProvider*> |
Definition at line 583 of file face-uri.cpp.
| using ndn::CanonizeProviderTable = typedef std::map<std::string, shared_ptr<CanonizeProvider>> |
Definition at line 584 of file face-uri.cpp.
| using ndn::ConstBufferPtr = typedef shared_ptr<const Buffer> |
Definition at line 126 of file buffer.hpp.
| typedef function<void(const Interest&, const Data&)> ndn::DataCallback |
EcKeyParams carries parameters for EC key.
Definition at line 202 of file key-params.hpp.
| typedef function<void(const InterestFilter&, const Interest&)> ndn::InterestCallback |
Callback invoked when incoming Interest matches the specified InterestFilter.
| typedef function<void(const Interest&, const lp::Nack&)> ndn::NackCallback |
| using ndn::PartialName = typedef Name |
| typedef RegexTopMatcher ndn::Regex |
| typedef function<void(const Name&, const std::string&)> ndn::RegisterPrefixFailureCallback |
| typedef function<void(const Name&)> ndn::RegisterPrefixSuccessCallback |
RsaKeyParams carries parameters for RSA key.
Definition at line 199 of file key-params.hpp.
| using ndn::ScopedInterestFilterHandle = typedef detail::ScopedCancelHandle |
A scoped handle of registered Interest filter.
Upon destruction of this handle, the Interest filter is unset automatically. Most commonly, the application keeps a ScopedInterestFilterHandle as a class member field, so that it can cleanup its Interest filter when the class instance is destructed.
| using ndn::ScopedPendingInterestHandle = typedef detail::ScopedCancelHandle |
A scoped handle of pending Interest.
Upon destruction of this handle, the pending Interest is canceled automatically. Most commonly, the application keeps a ScopedPendingInterestHandle as a class member field, so that it can cleanup its pending Interest when the class instance is destructed.
| using ndn::ScopedRegisteredPrefixHandle = typedef detail::ScopedCancelHandle |
A scoped handle of registered prefix.
Upon destruction of this handle, the prefix is unregistered automatically. Most commonly, the application keeps a ScopedRegisteredPrefixHandle as a class member field, so that it can cleanup its prefix registration when the class instance is destructed. The application will not be notified whether the unregistration was successful.
| typedef function<void(const Interest&)> ndn::TimeoutCallback |
| typedef function<void(const std::string&)> ndn::UnregisterPrefixFailureCallback |
| typedef function<void()> ndn::UnregisterPrefixSuccessCallback |
|
strong |
| Enumerator | |
|---|---|
| NONE | |
| PUBLIC | |
| PRIVATE | |
Definition at line 138 of file security-common.hpp.
|
strong |
| Enumerator | |
|---|---|
| NONE | |
| AES_CBC | |
Definition at line 122 of file security-common.hpp.
|
strong |
| Enumerator | |
|---|---|
| DECRYPT | |
| ENCRYPT | |
Definition at line 130 of file security-common.hpp.
|
strong |
| Enumerator | |
|---|---|
| NONE | |
| SHA224 | |
| SHA256 | |
| SHA384 | |
| SHA512 | |
| BLAKE2B_512 | |
| BLAKE2S_256 | |
| SHA3_224 | |
| SHA3_256 | |
| SHA3_384 | |
| SHA3_512 | |
Definition at line 105 of file security-common.hpp.
|
strong |
| Enumerator | |
|---|---|
| NONE | |
| PUBLIC | |
| PRIVATE | |
| SYMMETRIC | |
Definition at line 95 of file security-common.hpp.
|
strong |
The type of KeyId component in a key name.
Definition at line 58 of file security-common.hpp.
|
strong |
The type of a cryptographic key.
Definition at line 85 of file security-common.hpp.
| constexpr const T& ndn::clamp | ( | const T & | v, |
| const T & | lo, | ||
| const T & | hi, | ||
| Compare | comp | ||
| ) |
Definition at line 78 of file backports.hpp.
| constexpr const T& ndn::clamp | ( | const T & | v, |
| const T & | lo, | ||
| const T & | hi | ||
| ) |
Definition at line 85 of file backports.hpp.
| template size_t ndn::Data::wireEncode< encoding::EncoderTag > | ( | EncodingBuffer & | , |
| bool | |||
| ) | const |
| template size_t ndn::Data::wireEncode< encoding::EstimatorTag > | ( | EncodingEstimator & | , |
| bool | |||
| ) | const |
| template size_t ndn::DelegationList::wireEncode< encoding::EncoderTag > | ( | EncodingBuffer & | , |
| uint32_t | |||
| ) | const |
| template size_t ndn::DelegationList::wireEncode< encoding::EstimatorTag > | ( | EncodingEstimator & | , |
| uint32_t | |||
| ) | const |
| std::string ndn::escape | ( | const std::string & | str | ) |
Percent-encode a string.
This function will encode all characters that are not one of the following: ALPHA ("a" to "z" and "A" to "Z") / DIGIT (0 to 9) / "-" / "." / "_" / "~"
The hex encoding uses the numbers 0-9 and the uppercase letters A-F.
Examples:
Definition at line 97 of file string-helper.cpp.
| void ndn::escape | ( | std::ostream & | os, |
| const char * | str, | ||
| size_t | len | ||
| ) |
Definition at line 105 of file string-helper.cpp.
| template size_t ndn::Exclude::wireEncode<::ndn::encoding::EncoderTag > | ( | ::ndn::EncodingBuffer & | ) | const |
| template size_t ndn::Exclude::wireEncode<::ndn::encoding::EstimatorTag > | ( | ::ndn::EncodingEstimator & | ) | const |
|
static |
| shared_ptr< Buffer > ndn::fromHex | ( | const std::string & | hexString | ) |
Convert the hex string to buffer.
| hexString | sequence of pairs of hex numbers (lower and upper case can be mixed) without any whitespace separators (e.g., "48656C6C6F2C20776F726C6421") |
| StringHelperError | if input is invalid |
Definition at line 81 of file string-helper.cpp.
|
noexcept |
Convert the hex character c to an integer in [0, 15], or -1 if it's not a hex character.
Definition at line 168 of file string-helper.hpp.
|
static |
Definition at line 614 of file face-uri.cpp.
| template size_t ndn::Interest::wireEncode<::ndn::encoding::EncoderTag > | ( | ::ndn::EncodingBuffer & | ) | const |
| template size_t ndn::Interest::wireEncode<::ndn::encoding::EstimatorTag > | ( | ::ndn::EncodingEstimator & | ) | const |
| template size_t ndn::KeyLocator::wireEncode<::ndn::encoding::EncoderTag > | ( | ::ndn::EncodingBuffer & | ) | const |
| template size_t ndn::KeyLocator::wireEncode<::ndn::encoding::EstimatorTag > | ( | ::ndn::EncodingEstimator & | ) | const |
|
inline |
Definition at line 117 of file backports-ostream-joiner.hpp.
| template size_t ndn::MetaInfo::wireEncode<::ndn::encoding::EncoderTag > | ( | ::ndn::EncodingBuffer & | ) | const |
| template size_t ndn::MetaInfo::wireEncode<::ndn::encoding::EstimatorTag > | ( | ::ndn::EncodingEstimator & | ) | const |
| template size_t ndn::Name::wireEncode<::ndn::encoding::EncoderTag > | ( | ::ndn::EncodingBuffer & | ) | const |
| template size_t ndn::Name::wireEncode<::ndn::encoding::EstimatorTag > | ( | ::ndn::EncodingEstimator & | ) | const |
|
inline |
Definition at line 42 of file delegation.hpp.
|
inline |
Definition at line 133 of file prefix-announcement.hpp.
Definition at line 158 of file signature.hpp.
|
inline |
Definition at line 168 of file signature-info.hpp.
|
inline |
Definition at line 251 of file delegation-list.hpp.
Definition at line 500 of file interest.hpp.
| Block ndn::operator""_block | ( | const char * | input, |
| std::size_t | len | ||
| ) |
Construct a Block from hexadecimal input.
| input | a string containing hexadecimal bytes and comments. 0-9 and upper-case A-F are input; all other characters are comments. |
| len | length of input. |
| std::invalid_argument | input is empty or has odd number of hexadecimal digits. |
| tlv::Error | input cannot be parsed into valid Block. |
Example
| bool ndn::operator< | ( | const Delegation & | lhs, |
| const Delegation & | rhs | ||
| ) |
Definition at line 36 of file delegation.cpp.
| std::ostream & ndn::operator<< | ( | std::ostream & | os, |
| KeyIdType | keyIdType | ||
| ) |
Definition at line 29 of file security-common.cpp.
| std::ostream & ndn::operator<< | ( | std::ostream & | os, |
| const AsHex & | hex | ||
| ) |
Definition at line 35 of file string-helper.cpp.
| std::ostream & ndn::operator<< | ( | std::ostream & | os, |
| KeyType | keyType | ||
| ) |
Definition at line 43 of file security-common.cpp.
| std::ostream & ndn::operator<< | ( | std::ostream & | os, |
| const Delegation & | del | ||
| ) |
Definition at line 50 of file delegation.cpp.
| std::ostream & ndn::operator<< | ( | std::ostream & | os, |
| KeyClass | keyClass | ||
| ) |
Definition at line 59 of file security-common.cpp.
| std::ostream & ndn::operator<< | ( | std::ostream & | os, |
| const InterestFilter & | filter | ||
| ) |
Definition at line 66 of file interest-filter.cpp.
| std::ostream & ndn::operator<< | ( | std::ostream & | os, |
| DigestAlgorithm | algorithm | ||
| ) |
Definition at line 75 of file security-common.cpp.
| std::ostream & ndn::operator<< | ( | std::ostream & | os, |
| const RegexMatcher & | rm | ||
| ) |
Definition at line 75 of file regex-matcher.cpp.
| std::ostream & ndn::operator<< | ( | std::ostream & | os, |
| const Exclude::Range & | range | ||
| ) |
Definition at line 81 of file exclude.cpp.
| std::ostream & ndn::operator<< | ( | std::ostream & | os, |
| BlockCipherAlgorithm | algorithm | ||
| ) |
Definition at line 105 of file security-common.cpp.
| std::ostream & ndn::operator<< | ( | std::ostream & | os, |
| CipherOperator | op | ||
| ) |
Definition at line 117 of file security-common.cpp.
| std::ostream & ndn::operator<< | ( | std::ostream & | os, |
| const PrefixAnnouncement & | pa | ||
| ) |
Print prefix announcement to a stream.
This string is for debugging purpose. Its syntax is not public API.
Definition at line 129 of file prefix-announcement.cpp.
| std::ostream & ndn::operator<< | ( | std::ostream & | os, |
| AclType | aclType | ||
| ) |
Definition at line 129 of file security-common.cpp.
| std::ostream & ndn::operator<< | ( | std::ostream & | os, |
| const KeyLocator & | keyLocator | ||
| ) |
Definition at line 190 of file key-locator.cpp.
| std::ostream & ndn::operator<< | ( | std::ostream & | os, |
| const FaceUri & | uri | ||
| ) |
Definition at line 212 of file face-uri.cpp.
| std::ostream & ndn::operator<< | ( | std::ostream & | os, |
| const MetaInfo & | info | ||
| ) |
Definition at line 228 of file meta-info.cpp.
| std::ostream & ndn::operator<< | ( | std::ostream & | os, |
| const SignatureInfo & | info | ||
| ) |
Definition at line 230 of file signature-info.cpp.
| std::ostream & ndn::operator<< | ( | std::ostream & | os, |
| const DelegationList & | dl | ||
| ) |
Definition at line 236 of file delegation-list.cpp.
| std::ostream & ndn::operator<< | ( | std::ostream & | os, |
| const Name & | name | ||
| ) |
Print URI representation of a name.
| std::ostream & ndn::operator<< | ( | std::ostream & | os, |
| const Data & | data | ||
| ) |
| std::ostream & ndn::operator<< | ( | std::ostream & | os, |
| const Exclude & | exclude | ||
| ) |
Definition at line 332 of file exclude.cpp.
| std::ostream& ndn::operator<< | ( | std::ostream & | os, |
| const Block & | block | ||
| ) |
Default-constructed block is printed as: [invalid]. Zero-length block is printed as: TT[empty], where TT is TLV-TYPE in decimal. Non-zero-length block on which Block::parse is not called is printed as: TT[LL]=VVVV, where LL is TLV-LENGTH in decimal, and VVVV is TLV-VALUE is hexadecimal. Block on which Block::parse has been called in printed as: TT[LL]={SUB,SUB}, where SUB is a sub-element printed using this format.
| std::ostream & ndn::operator<< | ( | std::ostream & | os, |
| const Interest & | interest | ||
| ) |
Definition at line 643 of file interest.cpp.
| bool ndn::operator<= | ( | const Delegation & | lhs, |
| const Delegation & | rhs | ||
| ) |
Definition at line 43 of file delegation.cpp.
| bool ndn::operator== | ( | const Delegation & | lhs, |
| const Delegation & | rhs | ||
| ) |
Definition at line 29 of file delegation.cpp.
| bool ndn::operator== | ( | const Exclude::ExcludeComponent & | a, |
| const Exclude::ExcludeComponent & | b | ||
| ) |
Definition at line 45 of file exclude.cpp.
Definition at line 68 of file signature.cpp.
| bool ndn::operator== | ( | const PrefixAnnouncement & | lhs, |
| const PrefixAnnouncement & | rhs | ||
| ) |
Test whether two prefix announcements has the same name, expiration period, and validity period.
Definition at line 121 of file prefix-announcement.cpp.
| bool ndn::operator== | ( | const SignatureInfo & | lhs, |
| const SignatureInfo & | rhs | ||
| ) |
Definition at line 221 of file signature-info.cpp.
| bool ndn::operator== | ( | const DelegationList & | lhs, |
| const DelegationList & | rhs | ||
| ) |
compare whether two DelegationLists are equal
Definition at line 230 of file delegation-list.cpp.
Definition at line 628 of file interest.cpp.
| bool ndn::operator> | ( | const Exclude::ExcludeComponent & | a, |
| const Exclude::ExcludeComponent & | b | ||
| ) |
Definition at line 52 of file exclude.cpp.
|
inline |
Definition at line 54 of file delegation.hpp.
|
inline |
Definition at line 60 of file delegation.hpp.
| void ndn::printHex | ( | std::ostream & | os, |
| uint64_t | num, | ||
| bool | wantUpperCase = false |
||
| ) |
Output the hex representation of num to the output stream os.
| os | Output stream |
| num | Number to print in hexadecimal format |
| wantUpperCase | if true, print uppercase hex chars; the default is to use lowercase |
The output string is a continuous sequence of hex characters without any whitespace separators.
Definition at line 42 of file string-helper.cpp.
| void ndn::printHex | ( | std::ostream & | os, |
| const uint8_t * | buffer, | ||
| size_t | length, | ||
| bool | wantUpperCase = true |
||
| ) |
Output the hex representation of the bytes in buffer to the output stream os.
| os | Output stream |
| buffer | Pointer to an array of bytes |
| length | Size of the array |
| wantUpperCase | if true (the default) print uppercase hex chars |
Examples:
Each octet is always represented as two hex characters ("00" for octet==0).
The output string is a continuous sequence of hex characters without any whitespace separators.
Definition at line 53 of file string-helper.cpp.
| void ndn::printHex | ( | std::ostream & | os, |
| const Buffer & | buffer, | ||
| bool | wantUpperCase = true |
||
| ) |
Output the hex representation of the bytes in buffer to the output stream os.
| os | Output stream |
| buffer | Buffer of bytes to print in hexadecimal format |
| wantUpperCase | if true (the default) print uppercase hex chars |
Definition at line 61 of file string-helper.cpp.
| template size_t ndn::Selectors::wireEncode<::ndn::encoding::EncoderTag > | ( | ::ndn::EncodingBuffer & | ) | const |
| template size_t ndn::Selectors::wireEncode<::ndn::encoding::EstimatorTag > | ( | ::ndn::EncodingEstimator & | ) | const |
| template size_t ndn::SignatureInfo::wireEncode<::ndn::encoding::EncoderTag > | ( | ::ndn::EncodingBuffer & | ) | const |
| template size_t ndn::SignatureInfo::wireEncode<::ndn::encoding::EstimatorTag > | ( | ::ndn::EncodingEstimator & | ) | const |
|
inline |
Definition at line 67 of file backports.hpp.
| std::string ndn::toHex | ( | const uint8_t * | buffer, |
| size_t | length, | ||
| bool | wantUpperCase = true |
||
| ) |
Return a string containing the hex representation of the bytes in buffer.
| buffer | Pointer to an array of bytes |
| length | Size of the array |
| wantUpperCase | if true (the default) use uppercase hex chars |
Examples:
Each octet is always represented as two hex characters ("00" for octet==0).
The output string is a continuous sequence of hex characters without any whitespace separators.
Definition at line 67 of file string-helper.cpp.
| std::string ndn::toHex | ( | const Buffer & | buffer, |
| bool | wantUpperCase = true |
||
| ) |
Return a string containing the hex representation of the bytes in buffer.
| buffer | Buffer of bytes to convert to hexadecimal format |
| wantUpperCase | if true (the default) use uppercase hex chars |
Definition at line 75 of file string-helper.cpp.
|
noexcept |
Convert (the least significant nibble of) n to the corresponding hex character.
Definition at line 157 of file string-helper.hpp.
| std::string ndn::unescape | ( | const std::string & | str | ) |
Decode a percent-encoded string.
When % is not followed by two hex characters, the output is not transformed.
Examples:
Definition at line 126 of file string-helper.cpp.
| void ndn::unescape | ( | std::ostream & | os, |
| const char * | str, | ||
| size_t | len | ||
| ) |
Definition at line 134 of file string-helper.cpp.
|
static |
Definition at line 30 of file key-params.cpp.
|
static |
Definition at line 31 of file key-params.cpp.
| const int ndn::DEFAULT_CHILD_SELECTOR = 0 |
Definition at line 30 of file selectors.hpp.
|
static |
Definition at line 29 of file key-params.cpp.
| const time::milliseconds ndn::DEFAULT_FRESHNESS_PERIOD = time::milliseconds::zero() |
Definition at line 34 of file meta-info.hpp.
| const unspecified_duration_type ndn::DEFAULT_INTEREST_LIFETIME = 4_s |
default value for InterestLifetime
Definition at line 40 of file interest.hpp.
|
static |
Definition at line 27 of file key-params.cpp.
|
static |
Definition at line 28 of file key-params.cpp.
| const name::Component ndn::KEYWORD_METADATA_COMP = "20 08 6D65746164617461"_block |
Definition at line 31 of file metadata-object.cpp.
|
static |
Definition at line 29 of file prefix-announcement.cpp.
| const size_t ndn::MAX_NDN_PACKET_SIZE = 8800 |
| const size_t ndn::MAX_SIZE_OF_BLOCK_FROM_STREAM = MAX_NDN_PACKET_SIZE |
|
static |
Definition at line 26 of file key-params.cpp.