NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
readvertised-route.hpp
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
26 #ifndef NFD_RIB_READVERTISE_READVERTISED_ROUTE_HPP
27 #define NFD_RIB_READVERTISE_READVERTISED_ROUTE_HPP
28 
29 #include "core/scheduler.hpp"
30 #include <ndn-cxx/security/signing-info.hpp>
31 
32 namespace nfd {
33 namespace rib {
34 
37 class ReadvertisedRoute : noncopyable
38 {
39 public:
40  explicit
42 
43 public:
46  mutable size_t nRibRoutes;
47  mutable time::milliseconds retryDelay;
49 };
50 
51 inline bool
53 {
54  return lhs.prefix < rhs.prefix;
55 }
56 
57 using ReadvertisedRouteContainer = std::set<ReadvertisedRoute>;
58 
59 } // namespace rib
60 } // namespace nfd
61 
62 #endif // NFD_RIB_READVERTISE_READVERTISED_ROUTE_HPP
std::set< ReadvertisedRoute > ReadvertisedRouteContainer
ReadvertisedRoute(const Name &prefix)
Signing parameters passed to KeyChain.
size_t nRibRoutes
number of RIB routes that cause the readvertisement
Copyright (c) 2011-2015 Regents of the University of California.
Definition: ndn-common.hpp:40
state of a readvertised route
ndn::security::SigningInfo signer
signer for commands
scheduler::ScopedEventId retryEvt
retry or refresh event
Name prefix
readvertised prefix
cancels an event automatically upon destruction
Definition: scheduler.hpp:59
Represents an absolute name.
Definition: name.hpp:42
time::milliseconds retryDelay
retry interval (not used for refresh)
bool operator<(const ReadvertisedRoute &lhs, const ReadvertisedRoute &rhs)