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;
configuration file parsing utility
context for processing a config section in ProtocolFactory
GeneralConfig generalConfig
entry point of the face system
std::set< const ProtocolFactory * > listProtocolFactories() const
FaceSystem(FaceTable &faceTable, shared_ptr< ndn::net::NetworkMonitor > netmon)
FaceTable & getFaceTable()
bool hasFactoryForScheme(const std::string &scheme) const
void setConfigFile(ConfigFile &configFile)
register handler for face_system section of NFD configuration file
ProtocolFactory * getFactoryById(const std::string &id)
ProtocolFactory * getFactoryByScheme(const std::string &scheme)
Provides support for an underlying protocol.
#define NFD_PUBLIC_WITH_TESTS_ELSE_PRIVATE
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents,...
boost::property_tree::ptree ConfigSection
a config file section
configuration options from "general" section
bool wantCongestionMarking
Parameters to ProtocolFactory constructor.