26 #ifndef NFD_DAEMON_FACE_NETDEV_BOUND_HPP
27 #define NFD_DAEMON_FACE_NETDEV_BOUND_HPP
45 : Error(
"Error parsing face_system.netdev_bound.rule[" + to_string(
index) +
"]: " +
msg)
67 std::vector<FaceUri> remotes;
77 shared_ptr<ndn::net::NetworkMonitor> m_netmon;
79 std::vector<Rule> m_rules;
81 using Key = std::pair<FaceUri, std::string>;
82 std::map<Key, shared_ptr<Face>> m_faces;
context for processing a config section in ProtocolFactory
entry point of the 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...
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents,...
boost::optional< const ConfigSection & > OptionalConfigSection
an optional config file section
boost::property_tree::ptree ConfigSection
a config file section
Parameters to ProtocolFactory constructor.