26 #ifndef NFD_DAEMON_MGMT_FACE_MANAGER_HPP 27 #define NFD_DAEMON_MGMT_FACE_MANAGER_HPP 30 #include <ndn-cxx/management/nfd-face-status.hpp> 31 #include <ndn-cxx/management/nfd-face-query-filter.hpp> 38 class ProtocolFactory;
59 createFace(
const Name& topPrefix,
const Interest& interest,
64 destroyFace(
const Name& topPrefix,
const Interest& interest,
69 enableLocalControl(
const Name& topPrefix,
const Interest& interest,
74 disableLocalControl(
const Name& topPrefix,
const Interest& interest,
81 const shared_ptr<Face>& newFace,
85 afterCreateFaceFailure(
const std::string& reason,
89 findFaceForLocalControl(
const Interest& request,
95 listFaces(
const Name& topPrefix,
const Interest& interest,
99 listChannels(
const Name& topPrefix,
const Interest& interest,
103 queryFaces(
const Name& topPrefix,
const Interest& interest,
118 template<
typename FaceTraits>
120 collectFaceProperties(
const Face& face, FaceTraits& traits);
124 afterFaceAdded(shared_ptr<Face> face,
128 afterFaceRemoved(shared_ptr<Face> face,
133 processConfig(
const ConfigSection& configSection,
bool isDryRun,
134 const std::string& filename);
137 processSectionUnix(
const ConfigSection& configSection,
bool isDryRun);
140 processSectionTcp(
const ConfigSection& configSection,
bool isDryRun);
143 processSectionUdp(
const ConfigSection& configSection,
bool isDryRun,
144 const std::vector<NetworkInterfaceInfo>& nicList);
147 processSectionEther(
const ConfigSection& configSection,
bool isDryRun,
148 const std::vector<NetworkInterfaceInfo>& nicList);
151 processSectionWebSocket(
const ConfigSection& configSection,
bool isDryRun);
154 std::map<std::string , shared_ptr<ProtocolFactory>> m_factories;
164 #endif // NFD_DAEMON_MGMT_FACE_MANAGER_HPP void setConfigFile(ConfigFile &configFile)
Subscribe to face_system section for the config file.
a collection of common functions shared by all NFD managers, such as communicating with the dispatche...
represents parameters in a ControlCommand request or response
std::function< void(const Block ¬ification)> PostNotification
a function to post a notification
represents a dispatcher on server side of NFD Management protocol
represents an Interest packet
Copyright (c) 2011-2015 Regents of the University of California.
disconnects a Connection automatically upon destruction
boost::property_tree::ptree ConfigSection
Name abstraction to represent an absolute name.
std::function< void(const ControlResponse &resp)> CommandContinuation
a function to be called after ControlCommandHandler completes
represents Face Query Filter
#define PUBLIC_WITH_TESTS_ELSE_PRIVATE
NetworkInterfaceInfo
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...
provides a context for generating response to a StatusDataset request
FaceManager(FaceTable &faceTable, Dispatcher &dispatcher, CommandValidator &validator)
implement the Face Management of NFD Management Protocol.