NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
rib-status-publisher.hpp
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
26 #ifndef NFD_RIB_RIB_STATUS_PUBLISHER_HPP
27 #define NFD_RIB_RIB_STATUS_PUBLISHER_HPP
28 
30 #include <ndn-cxx/face.hpp>
31 
32 namespace nfd {
33 namespace rib {
34 
35 class Rib;
36 
37 class RibStatusPublisher : public SegmentPublisher<ndn::Face>
38 {
39 public:
40  RibStatusPublisher(const Rib& rib,
41  ndn::Face& face,
42  const Name& prefix,
43  ndn::KeyChain& keyChain);
44 
45  virtual
47 
48 protected:
49  virtual size_t
50  generate(ndn::EncodingBuffer& outBuffer);
51 
52 private:
53  const Rib& m_rib;
54 };
55 
56 
57 } // namespace rib
58 } // namespace nfd
59 
60 #endif
provides a publisher of Status Dataset or other segmented octet stream
represents the RIB
Definition: rib.hpp:45
Rib
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...
Definition: rib.cpp:31
The packet signing interface.
Definition: key-chain.hpp:48
virtual size_t generate(ndn::EncodingBuffer &outBuffer)
In a derived class, write the octets into outBuffer.
EncodingImpl< EncoderTag > EncodingBuffer
Copyright (c) 2011-2015 Regents of the University of California.
Definition: ndn-common.hpp:40
Abstraction to communicate with local or remote NDN forwarder.
Definition: face.hpp:119
RibStatusPublisher(const Rib &rib, ndn::Face &face, const Name &prefix, ndn::KeyChain &keyChain)
Name abstraction to represent an absolute name.
Definition: name.hpp:46