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)
 
 operator const PendingInterestId * () const noexcept
 
- Public Member Functions inherited from ndn::detail::CancelHandle
 CancelHandle () noexcept=default
 
 CancelHandle (function< void()> cancel)
 
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
Warning
Canceling the same pending Interest more than once, using same or different PendingInterestHandle or ScopedPendingInterestHandle, may trigger undefined behavior.
Canceling a pending Interest after the face has been destructed may trigger undefined behavior.

Definition at line 497 of file face.hpp.

Constructor & Destructor Documentation

◆ PendingInterestHandle() [1/2]

ndn::PendingInterestHandle::PendingInterestHandle ( )
defaultnoexcept

◆ PendingInterestHandle() [2/2]

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

Definition at line 340 of file face.cpp.

References ndn::Face::removePendingInterest().

Member Function Documentation

◆ operator const PendingInterestId *()

ndn::PendingInterestHandle::operator const PendingInterestId * ( ) const
inlinenoexcept

Definition at line 504 of file face.hpp.


The documentation for this class was generated from the following files: