|
ndn-embeds 0.1.0
Lightweight NDN protocol stack for embedded systems
|
PIT entry. More...
#include <ndn/pit.hpp>
Public Member Functions | |
| const Name & | name () const |
| Get the Interest Name. | |
| uint32_t | nonce () const |
| Get the Interest nonce. | |
| TimeMs | expireTime () const |
| Get the entry expiration time. | |
Face management | |
| size_t | faceCount () const |
| Get the number of registered Faces. | |
| FaceId | face (size_t index) const |
| Get the Face ID at a given index. | |
| bool | hasFace (FaceId faceId) const |
| Check if a given Face is registered. | |
| bool | addFace (FaceId faceId) |
| Add a Face. | |
Friends | |
| class | Pit |
PIT entry.
Holds information about a single pending Interest. When the same Interest is received from multiple Faces, their Face IDs are recorded.
| bool ndn::PitEntry::addFace | ( | FaceId | faceId | ) |
Add a Face.
| faceId | Face ID to add |
Definition at line 25 of file pit.cpp.
References hasFace(), and ndn::PIT_MAX_FACES_PER_ENTRY.
Referenced by ndn::Pit::insert().
|
inline |
| FaceId ndn::PitEntry::face | ( | size_t | index | ) | const |
Get the Face ID at a given index.
| index | Index (starting from 0) |
Definition at line 9 of file pit.cpp.
References ndn::FACE_ID_INVALID.
|
inline |
Get the number of registered Faces.
Definition at line 74 of file pit.hpp.
Referenced by ndn::Forwarder::putData().
| bool ndn::PitEntry::hasFace | ( | FaceId | faceId | ) | const |
|
inline |
|
inline |