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;
88 #endif // NFD_DAEMON_FACE_NETDEV_BOUND_HPP RuleParseError(int index, std::string msg)
void processConfig(OptionalConfigSection configSection, FaceSystem::ConfigContext &context)
process face_system.netdev_bound config section
boost::optional< const ConfigSection & > OptionalConfigSection
an optional config file section
NetdevBound(const ProtocolFactoryCtorParams ¶ms, const FaceSystem &faceSystem)
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...
Represents a predicate to accept or reject a ndn::net::NetworkInterface.
Parameters to ProtocolFactory constructor.
#define 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...
entry point of the face system
manages netdev-bound faces