NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
ndn::PendingInterestHandle Class Reference

A handle of pending Interest. More...

#include <face.hpp>

Inheritance diagram for ndn::PendingInterestHandle:
Collaboration diagram for ndn::PendingInterestHandle:

Public Member Functions

 PendingInterestHandle () noexcept=default
 PendingInterestHandle (Face &face, const PendingInterestId *id)
- Public Member Functions inherited from ndn::detail::CancelHandle
 CancelHandle () noexcept
 CancelHandle (std::function< void()> cancel) noexcept
void cancel () const
 Cancel the operation. More...

Detailed Description

A handle of pending Interest.

PendingInterestHandle hdl = face.expressInterest(interest, satisfyCb, nackCb, timeoutCb);
hdl.cancel(); // cancel the pending Interest
Canceling a pending Interest after the face has been destructed may trigger undefined behavior.

Definition at line 492 of file face.hpp.

Constructor & Destructor Documentation

◆ PendingInterestHandle() [1/2]

ndn::PendingInterestHandle::PendingInterestHandle ( )

◆ PendingInterestHandle() [2/2]

ndn::PendingInterestHandle::PendingInterestHandle ( Face face,
const PendingInterestId *  id 

Definition at line 309 of file face.cpp.

The documentation for this class was generated from the following files:
PendingInterestHandle() noexcept=default