26 #ifndef NFD_DAEMON_FW_ACCESS_STRATEGY_HPP 27 #define NFD_DAEMON_FW_ACCESS_STRATEGY_HPP 32 #include <unordered_set> 33 #include <unordered_map> 61 shared_ptr<fib::Entry> fibEntry,
104 std::tuple<Name, shared_ptr<MtInfo>>
105 findPrefixMeasurements(
const pit::Entry& pitEntry);
111 addPrefixMeasurements(
const Data& data);
124 typedef std::unordered_map<FaceId, FaceInfo> FaceInfoTable;
127 removeFaceInfo(shared_ptr<Face>
face);
131 afterReceiveNewInterest(
const Face& inFace,
133 shared_ptr<fib::Entry> fibEntry,
134 shared_ptr<pit::Entry> pitEntry);
137 afterReceiveRetxInterest(
const Face& inFace,
139 shared_ptr<fib::Entry> fibEntry,
140 shared_ptr<pit::Entry> pitEntry);
146 sendToLastNexthop(
const Face& inFace, shared_ptr<pit::Entry> pitEntry, MtInfo& mi,
147 shared_ptr<fib::Entry> fibEntry);
150 afterRtoTimeout(weak_ptr<pit::Entry> pitWeak, weak_ptr<fib::Entry> fibWeak,
157 multicast(shared_ptr<pit::Entry> pitEntry,
158 shared_ptr<fib::Entry> fibEntry,
159 std::unordered_set<FaceId> exceptFaces = std::unordered_set<FaceId>());
162 updateMeasurements(
const Face& inFace,
const Data& data,
177 #endif // NFD_DAEMON_FW_ACCESS_STRATEGY_HPP time::microseconds Duration
a retransmission suppression decision algorithm that suppresses retransmissions within a fixed durati...
AccessStrategy(Forwarder &forwarder, const Name &name=STRATEGY_NAME)
represents an Interest packet
static const Name STRATEGY_NAME
#define DECL_OVERRIDE
expands to 'override' if compiler supports 'override' specifier, otherwise expands to nothing ...
virtual void afterReceiveInterest(const Face &inFace, const Interest &interest, shared_ptr< fib::Entry > fibEntry, shared_ptr< pit::Entry > pitEntry) 1
trigger after Interest is received
virtual ~AccessStrategy()
Copyright (c) 2011-2015 Regents of the University of California.
disconnects a Connection automatically upon destruction
virtual void beforeSatisfyInterest(shared_ptr< pit::Entry > pitEntry, const Face &inFace, const Data &data) 1
trigger before PIT entry is satisfied
cancels an event automatically upon destruction
Name abstraction to represent an absolute name.
represents a forwarding strategy
implements the Mean-Deviation RTT estimator
Access Router Strategy version 1.
uint64_t FaceId
identifies a face
contains arbitrary information forwarding strategy places on table entries