# README
ndn package
ndn
provides basic interfaces of NDN packet, specification abstraction, and low-level engine.
Most high level packages will only depend on ndn, instead of specific implementations.
To simplify implementation, Data and Interest are immutable.
ndn.spec_2022
has a default implementation of these interfaces based on current NDN Spec.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Cancelled due to disconnection.
Data is fetched.
Other error happens during handling the fetched data.
NetworkNack is received.
Empty result.
Timeout.
Failed of validation.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
ErrDeadlineExceed is returned when the deadline of the Interest passed.
ErrFaceDown is returned when the face is closed.
ErrFailedToEncode is returned when encoding fails but the input arguments are valid.
ErrMultipleHandlers is returned when multiple handlers are attached to the same prefix.
ErrWrongType is returned when the type of the packet to parse is not expected.
# Structs
DataConfig is used to create a Data.
Container for an encoded Data packet.
Container for an encoded Interest packet.
No description provided by the author
No description provided by the author
ExpressCallbackArgs represents the arguments passed to the ExpressCallbackFunc.
InterestConfig is used to create a Interest.
Extra information passed to the InterestHandler.
SigConfig represents the configuration of signature used in signing.
# Interfaces
Data is the abstract of a received Data packet.
Engine represents a running NDN App low-level engine.
Interest is the abstract of a received Interest packet.
Signature is the abstract of the signature of a packet.
Signer is the interface of the signer of a packet.
Spec represents an NDN packet specification.
No description provided by the author
No description provided by the author
# Type aliases
ContentType represents the type of Data content in MetaInfo.
ExpressCallbackFunc represents the callback function for Interest expression.
InterestHandler represents the callback function for an Interest handler.
InterestResult represents the result of Interest expression.
SigChecker is a basic function to check the signature of a packet.
SigType represents the type of signature.
ReplyFunc represents the callback function to reply for an Interest.