26 #ifndef NFD_DAEMON_FACE_FACE_SYSTEM_HPP
27 #define NFD_DAEMON_FACE_FACE_SYSTEM_HPP
40 class ProtocolFactory;
57 std::set<const ProtocolFactory*>
80 const std::vector<NetworkInterfaceInfo>&
93 std::vector<NetworkInterfaceInfo> m_netifs;
100 processConfig(
const ConfigSection& configSection,
bool isDryRun,
101 const std::string& filename);
106 std::map<std::string, unique_ptr<ProtocolFactory>> m_factories;
113 std::map<std::string, ProtocolFactory*> m_factoryByScheme;
124 #endif // NFD_DAEMON_FACE_FACE_SYSTEM_HPP
configuration file parsing utility
const std::vector< NetworkInterfaceInfo > & listNetifs() const
ProtocolFactory * getFactoryByScheme(const std::string &scheme)
FaceCreatedCallback addFace
void setConfigFile(ConfigFile &configFile)
register handler for face_system section of NFD configuration file
context for processing a config section in ProtocolFactory
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...
boost::property_tree::ptree ConfigSection
a config file section
provide support for an underlying protocol
#define PUBLIC_WITH_TESTS_ELSE_PRIVATE
function< void(const shared_ptr< Face > &newFace)> FaceCreatedCallback
Prototype for the callback that is invoked when the face is created (as a response to incoming connec...
entry point of the face system
FaceSystem(FaceTable &faceTable)
ProtocolFactory * getFactoryById(const std::string &id)
std::set< const ProtocolFactory * > listProtocolFactories() const