26 #ifndef NFD_DAEMON_FACE_NETDEV_BOUND_HPP
27 #define NFD_DAEMON_FACE_NETDEV_BOUND_HPP
46 : Error(
"Error parsing face_system.netdev_bound.rule[" + std::to_string(
index) +
"]: " +
msg)
68 std::vector<FaceUri> remotes;
78 shared_ptr<ndn::net::NetworkMonitor> m_netmon;
80 std::vector<Rule> m_rules;
82 using Key = std::pair<FaceUri, std::string>;
83 std::map<Key, shared_ptr<Face>> m_faces;
Context for processing a config section in ProtocolFactory.
Entry point of NFD's face system.
RuleParseError(int index, std::string msg)
Manages netdev-bound faces.
NetdevBound(const ProtocolFactoryCtorParams ¶ms, const FaceSystem &faceSystem)
void processConfig(OptionalConfigSection configSection, FaceSystem::ConfigContext &context)
Process face_system.netdev_bound config section.
Represents a predicate to accept or reject a ndn::net::NetworkInterface.
#define NFD_PUBLIC_WITH_TESTS_ELSE_PRIVATE
std::function< void(const shared_ptr< Face > &)> FaceCreatedCallback
Prototype for the callback that is invoked when a face is created (in response to an incoming connect...
boost::optional< const ConfigSection & > OptionalConfigSection
An optional configuration file section.
boost::property_tree::ptree ConfigSection
A configuration file section.
Parameters to ProtocolFactory constructor.