Contains information about an Interest toward an outgoing face. More...
#include <daemon/table/pit-out-record.hpp>
Public Member Functions | |
void | clearIncomingNack () noexcept |
Clears last NACK. More... | |
void | clearStrategyInfo () |
Clear all StrategyInfo items. More... | |
template<typename T > | |
size_t | eraseStrategyInfo () |
Erase a StrategyInfo item. More... | |
FaceRecord (Face &face) | |
time::steady_clock::time_point | getExpiry () const noexcept |
Returns the time point at which this record expires. More... | |
Face & | getFace () const noexcept |
const lp::NackHeader * | getIncomingNack () const noexcept |
Returns the last NACK returned by getFace(). More... | |
Interest::Nonce | getLastNonce () const noexcept |
time::steady_clock::time_point | getLastRenewed () const noexcept |
template<typename T > | |
T * | getStrategyInfo () const |
Get a StrategyInfo item. More... | |
template<typename T , typename ... A> | |
std::pair< T *, bool > | insertStrategyInfo (A &&... args) |
Insert a StrategyInfo item. More... | |
bool | setIncomingNack (const lp::Nack &nack) |
Sets a NACK received from getFace(). More... | |
void | update (const Interest &interest) |
Updates lastNonce, lastRenewed, expiry fields. More... | |
Contains information about an Interest toward an outgoing face.
Definition at line 36 of file pit-out-record.hpp.
|
inlinenoexcept |
Clears last NACK.
This is invoked in outgoing Interest pipeline. This invalidates any pointer previously returned by getIncomingNack().
Definition at line 69 of file pit-out-record.hpp.
|
inlineinherited |
Clear all StrategyInfo items.
Definition at line 92 of file strategy-info-host.hpp.
|
inlineinherited |
Erase a StrategyInfo item.
T | type of StrategyInfo, must be a subclass of fw::StrategyInfo |
Definition at line 82 of file strategy-info-host.hpp.
|
inlineexplicit |
Definition at line 43 of file pit-face-record.hpp.
|
inlinenoexceptinherited |
Returns the time point at which this record expires.
Definition at line 70 of file pit-face-record.hpp.
|
inlinenoexceptinherited |
Definition at line 49 of file pit-face-record.hpp.
|
inlinenoexcept |
Returns the last NACK returned by getFace().
A nullptr return value means the Interest is still pending or has timed out. A non-null return value means the last outgoing Interest has been NACKed.
Definition at line 47 of file pit-out-record.hpp.
|
inlinenoexceptinherited |
Definition at line 55 of file pit-face-record.hpp.
|
inlinenoexceptinherited |
Definition at line 61 of file pit-face-record.hpp.
|
inlineinherited |
Get a StrategyInfo item.
T | type of StrategyInfo, must be a subclass of fw::StrategyInfo |
Definition at line 46 of file strategy-info-host.hpp.
|
inlineinherited |
Insert a StrategyInfo item.
T | type of StrategyInfo, must be a subclass of fw::StrategyInfo |
Definition at line 64 of file strategy-info-host.hpp.
bool nfd::pit::OutRecord::setIncomingNack | ( | const lp::Nack & | nack | ) |
Sets a NACK received from getFace().
This is invoked in incoming NACK pipeline. An incoming NACK is accepted if its Nonce matches getLastNonce(). If accepted, nack.getHeader()
will be copied, and any pointer previously returned by getIncomingNack().
Definition at line 31 of file pit-out-record.cpp.
|
inherited |
Updates lastNonce, lastRenewed, expiry fields.
Definition at line 34 of file pit-face-record.cpp.