NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
channel-status-publisher.hpp
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
26 #ifndef NFD_DAEMON_MGMT_CHANNEL_STATUS_PUBLISHER_HPP
27 #define NFD_DAEMON_MGMT_CHANNEL_STATUS_PUBLISHER_HPP
28 
30 #include "mgmt/app-face.hpp"
31 
32 namespace nfd {
33 
34 class ProtocolFactory;
35 
37 {
38 public:
39  typedef std::map< std::string/*protocol*/, shared_ptr<ProtocolFactory> > FactoryMap;
40 
41  ChannelStatusPublisher(const FactoryMap& factories,
42  AppFace& face,
43  const Name& prefix,
44  ndn::KeyChain& keyChain);
45 
46  virtual
48 
49 protected:
50 
51  virtual size_t
52  generate(ndn::EncodingBuffer& outBuffer);
53 
54 private:
55  const FactoryMap& m_factories;
56 };
57 
58 } // namespace nfd
59 
60 #endif // NFD_DAEMON_MGMT_CHANNEL_STATUS_PUBLISHER_HPP
provides a publisher of Status Dataset or other segmented octet stream
virtual size_t generate(ndn::EncodingBuffer &outBuffer)
In a derived class, write the octets into outBuffer.
ChannelStatusPublisher(const FactoryMap &factories, AppFace &face, const Name &prefix, ndn::KeyChain &keyChain)
EncodingImpl< EncoderTag > EncodingBuffer
Copyright (c) 2011-2015 Regents of the University of California.
Definition: ndn-common.hpp:38
Name abstraction to represent an absolute name.
Definition: name.hpp:46
std::map< std::string, shared_ptr< ProtocolFactory > > FactoryMap