|
ndn-embeds 0.1.0
Lightweight NDN protocol stack for embedded systems
|
NDN Forwarder. More...
#include "ndn/common.hpp"#include "ndn/cs.hpp"#include "ndn/data.hpp"#include "ndn/face.hpp"#include "ndn/fib.hpp"#include "ndn/interest.hpp"#include "ndn/pit.hpp"Go to the source code of this file.
Classes | |
| class | ndn::Forwarder |
| NDN Forwarder. More... | |
| struct | ndn::Forwarder::Stats |
| Forwarder statistics. More... | |
Typedefs | |
| using | ndn::InterestCallback = std::function< void(const Interest &, FaceId)> |
| Interest receive callback. | |
| using | ndn::DataCallback = std::function< void(const Data &)> |
| Data receive callback. | |
| using | ndn::TimeoutCallback = std::function< void(const Interest &)> |
| Timeout callback. | |
Variables | |
| constexpr size_t | ndn::FORWARDER_MAX_FACES = 8 |
| Maximum number of Faces the Forwarder can manage. | |
| constexpr size_t | ndn::FORWARDER_MAX_PREFIXES = 16 |
| Maximum number of registerable prefixes. | |
NDN Forwarder.
The Forwarder is the central component of the NDN protocol stack. It integrates PIT, CS, and FIB to forward Interest and Data packets. It also provides application APIs for sending Interests and registering prefixes.
Definition in file forwarder.hpp.
| using ndn::DataCallback = typedef std::function<void(const Data&)> |
Data receive callback.
Called when Data is received for an Interest sent via expressInterest().
| data | Received Data |
Definition at line 41 of file forwarder.hpp.
| using ndn::InterestCallback = typedef std::function<void(const Interest&, FaceId)> |
Interest receive callback.
Called when an Interest matching a registered prefix is received.
| interest | Received Interest |
| faceId | ID of the Face that received it |
Definition at line 32 of file forwarder.hpp.
| using ndn::TimeoutCallback = typedef std::function<void(const Interest&)> |
Timeout callback.
Called when an Interest sent via expressInterest() times out.
| interest | Timed-out Interest |
Definition at line 50 of file forwarder.hpp.
|
constexpr |
Maximum number of Faces the Forwarder can manage.
Definition at line 53 of file forwarder.hpp.
|
constexpr |
Maximum number of registerable prefixes.
Definition at line 56 of file forwarder.hpp.