#include <pending-interest.hpp>
Public Types | |
| typedef function< void(const Interest &, Data &)> | OnData |
| typedef function< void(const Interest &)> | OnTimeout |
Public Member Functions | |
| PendingInterest (const shared_ptr< const Interest > &interest, const OnData &onData, const OnTimeout &onTimeout) | |
| Create a new PitEntry and set the timeout based on the current time and the interest lifetime. More... | |
| const shared_ptr< const Interest > & | getInterest () |
| const OnData & | getOnData () |
| bool | isTimedOut (const time::steady_clock::TimePoint &now) |
| Check if this interest is timed out. More... | |
| void | callTimeout () |
| Call m_onTimeout (if defined). More... | |
Definition at line 17 of file pending-interest.hpp.
| typedef function<void(const Interest&, Data&)> ndn::PendingInterest::OnData |
Definition at line 20 of file pending-interest.hpp.
| typedef function<void(const Interest&)> ndn::PendingInterest::OnTimeout |
Definition at line 21 of file pending-interest.hpp.
|
inline |
Create a new PitEntry and set the timeout based on the current time and the interest lifetime.
| interest | A shared_ptr for the interest |
| onData | A function object to call when a matching data packet is received. |
| onTimeout | A function object to call if the interest times out. If onTimeout is an empty OnTimeout(), this does not use it. |
Definition at line 32 of file pending-interest.hpp.
|
inline |
Call m_onTimeout (if defined).
This ignores exceptions from the m_onTimeout.
Definition at line 70 of file pending-interest.hpp.
|
inline |
Definition at line 45 of file pending-interest.hpp.
|
inline |
Definition at line 51 of file pending-interest.hpp.
|
inline |
Check if this interest is timed out.
Definition at line 61 of file pending-interest.hpp.