26 #ifndef NFD_DAEMON_FACE_FACE_SYSTEM_HPP 27 #define NFD_DAEMON_FACE_FACE_SYSTEM_HPP 32 #include <ndn-cxx/net/network-address.hpp> 33 #include <ndn-cxx/net/network-interface.hpp> 34 #include <ndn-cxx/net/network-monitor.hpp> 43 class ProtocolFactory;
44 struct ProtocolFactoryCtorParams;
60 std::set<const ProtocolFactory*>
109 processConfig(
const ConfigSection& configSection,
bool isDryRun,
110 const std::string& filename);
115 std::map<std::string, unique_ptr<ProtocolFactory>> m_factories;
116 unique_ptr<NetdevBound> m_netdevBound;
123 std::map<std::string, ProtocolFactory*> m_factoryByScheme;
126 shared_ptr<ndn::net::NetworkMonitor> m_netmon;
135 #endif // NFD_DAEMON_FACE_FACE_SYSTEM_HPP
FaceTable & getFaceTable()
FaceSystem(FaceTable &faceTable, shared_ptr< ndn::net::NetworkMonitor > netmon)
configuration file parsing utility
bool hasFactoryForScheme(const std::string &scheme) const
ProtocolFactory * getFactoryByScheme(const std::string &scheme)
void setConfigFile(ConfigFile &configFile)
register handler for face_system section of NFD configuration file
std::set< const ProtocolFactory * > listProtocolFactories() const
context for processing a config section in ProtocolFactory
boost::property_tree::ptree ConfigSection
a config file section
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...
GeneralConfig generalConfig
configuration options from "general" section
Provides support for an underlying protocol.
Parameters to ProtocolFactory constructor.
bool wantCongestionMarking
#define PUBLIC_WITH_TESTS_ELSE_PRIVATE
entry point of the face system
ProtocolFactory * getFactoryById(const std::string &id)