#include <pending-interest.hpp>


Public Member Functions | |
| PendingInterest (shared_ptr< const Interest > interest, const DataCallback &dataCallback, const NackCallback &nackCallback, const TimeoutCallback &timeoutCallback, Scheduler &scheduler) | |
| Create a new PitEntry and set the timeout based on the current time and the Interest lifetime. More... | |
| shared_ptr< const Interest > | getInterest () const |
| void | invokeDataCallback (const Data &data) |
| invokes the DataCallback More... | |
| void | invokeNackCallback (const lp::Nack &nack) |
| invokes the NackCallback More... | |
| void | setDeleter (const std::function< void()> &deleter) |
| Set cleanup function to be called after interest times out. More... | |
Definition at line 35 of file pending-interest.hpp.
|
inline |
Create a new PitEntry and set the timeout based on the current time and the Interest lifetime.
| interest | shared_ptr for the Interest |
| dataCallback | function to call when matching Data packet is received |
| nackCallback | function to call when Nack matching Interest is received |
| timeoutCallback | function to call if Interest times out |
| scheduler | Scheduler instance to use to schedule a timeout event. The scheduled event will be automatically cancelled when pending Interest is destroyed. |
Definition at line 48 of file pending-interest.hpp.
References ndn::DEFAULT_INTEREST_LIFETIME, and ndn::util::scheduler::Scheduler::scheduleEvent().
|
inline |
Definition at line 70 of file pending-interest.hpp.
|
inline |
invokes the DataCallback
Definition at line 80 of file pending-interest.hpp.
|
inline |
invokes the NackCallback
Definition at line 90 of file pending-interest.hpp.
|
inline |
Set cleanup function to be called after interest times out.
Definition at line 99 of file pending-interest.hpp.