Represents a route for a name prefix.
More...
#include <daemon/rib/route.hpp>
|
time::steady_clock::time_point | annExpires |
| Expiration time of the prefix announcement. More...
|
|
std::optional< ndn::PrefixAnnouncement > | announcement |
| The prefix announcement that caused the creation of this route. More...
|
|
uint64_t | cost = 0 |
|
std::optional< time::steady_clock::time_point > | expires |
|
uint64_t | faceId = 0 |
|
std::underlying_type_t< ndn::nfd::RouteFlags > | flags = ndn::nfd::ROUTE_FLAGS_NONE |
|
ndn::nfd::RouteOrigin | origin = ndn::nfd::ROUTE_ORIGIN_APP |
|
Represents a route for a name prefix.
Definition at line 43 of file route.hpp.
◆ Route() [1/2]
nfd::rib::Route::Route |
( |
| ) |
|
|
default |
◆ Route() [2/2]
nfd::rib::Route::Route |
( |
const ndn::PrefixAnnouncement & |
ann, |
|
|
uint64_t |
faceId |
|
) |
| |
Construct from a prefix announcement.
- Parameters
-
ann | a prefix announcement that has passed verification |
faceId | the face on which ann arrived |
Definition at line 53 of file route.cpp.
◆ cancelExpirationEvent()
void nfd::rib::Route::cancelExpirationEvent |
( |
| ) |
|
|
inline |
◆ getExpirationEvent()
const ndn::scheduler::EventId& nfd::rib::Route::getExpirationEvent |
( |
| ) |
const |
|
inline |
◆ getFlags()
std::underlying_type_t<ndn::nfd::RouteFlags> nfd::rib::Route::getFlags |
( |
| ) |
const |
|
inline |
◆ setExpirationEvent()
void nfd::rib::Route::setExpirationEvent |
( |
const ndn::scheduler::EventId & |
eid | ) |
|
|
inline |
◆ operator==
bool operator== |
( |
const Route & |
lhs, |
|
|
const Route & |
rhs |
|
) |
| |
|
friend |
◆ annExpires
time::steady_clock::time_point nfd::rib::Route::annExpires |
Expiration time of the prefix announcement.
Valid only if announcement is not nullopt.
If this field is before or equal the current time, it indicates the prefix announcement is not yet valid or has expired. In this case, the exact value of this field does not matter. If this field is after the current time, it indicates when the prefix announcement expires.
Definition at line 113 of file route.hpp.
◆ announcement
std::optional<ndn::PrefixAnnouncement> nfd::rib::Route::announcement |
The prefix announcement that caused the creation of this route.
This is nullopt if this route is not created by a prefix announcement.
Definition at line 103 of file route.hpp.
◆ cost
uint64_t nfd::rib::Route::cost = 0 |
◆ expires
std::optional<time::steady_clock::time_point> nfd::rib::Route::expires |
◆ faceId
uint64_t nfd::rib::Route::faceId = 0 |
◆ flags
std::underlying_type_t<ndn::nfd::RouteFlags> nfd::rib::Route::flags = ndn::nfd::ROUTE_FLAGS_NONE |
◆ origin
ndn::nfd::RouteOrigin nfd::rib::Route::origin = ndn::nfd::ROUTE_ORIGIN_APP |