22 #ifndef NDN_EXPONENTIAL_RE_EXPRESS_HPP
23 #define NDN_EXPONENTIAL_RE_EXPRESS_HPP
25 #include "../face.hpp"
75 : face_(face), callerOnData_(onData), callerOnTimeout_(onTimeout),
76 maxInterestLifetime_(maxInterestLifetime)
80 onTimeout(
const ptr_lib::shared_ptr<const Interest>& interest);
double Milliseconds
A time interval represented as the number of milliseconds.
Definition: common.hpp:114
The Face class provides the main methods for NDN communication.
Definition: face.hpp:86
static OnTimeout makeOnTimeout(Face *face, const OnData &onData, const OnTimeout &onTimeout, Milliseconds maxInterestLifetime=16000.0)
Return a function object to use in expressInterest for onTimeout which will express the interest agai...
Definition: exponential-re-express.cpp:34
func_lib::function< void(const ptr_lib::shared_ptr< const Interest > &interest)> OnTimeout
An OnTimeout function object is used to pass a callback to expressInterest.
Definition: face.hpp:48
func_lib::function< void(const ptr_lib::shared_ptr< const Interest > &interest, const ptr_lib::shared_ptr< Data > &data)> OnData
An OnData function object is used to pass a callback to expressInterest.
Definition: face.hpp:35
An ExponentialReExpress uses an internal onTimeout to express the interest again with double the inte...
Definition: exponential-re-express.hpp:34