26 #ifndef NFD_DAEMON_FACE_ETHERNET_FACTORY_HPP
27 #define NFD_DAEMON_FACE_ETHERNET_FACTORY_HPP
41 static const std::string&
54 ndn::nfd::FacePersistency persistency,
55 bool wantLocalFieldsEnabled,
61 std::vector<shared_ptr<const Channel>>
79 struct MulticastConfig
81 bool isEnabled =
false;
82 ethernet::Address group = ethernet::getDefaultMulticastAddress();
86 MulticastConfig m_mcastConfig;
89 std::map<std::pair<std::string, ethernet::Address>, shared_ptr<Face>> m_mcastFaces;
95 #endif // NFD_DAEMON_FACE_ETHERNET_FACTORY_HPP
contains information about a network interface
std::vector< shared_ptr< const Channel > > getChannels() const override
context for processing a config section in ProtocolFactory
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...
boost::optional< const ConfigSection & > OptionalConfigSection
an optional config file section
static const std::string & getId()
void createFace(const FaceUri &uri, ndn::nfd::FacePersistency persistency, bool wantLocalFieldsEnabled, const FaceCreatedCallback &onCreated, const FaceCreationFailedCallback &onFailure) override
unicast face creation is not supported and will always fail
protocol factory for Ethernet
function< void(uint32_t status, const std::string &reason)> FaceCreationFailedCallback
Prototype for the callback that is invoked when the face fails to be created.
provide support for an underlying protocol
void processConfig(OptionalConfigSection configSection, FaceSystem::ConfigContext &context) override
process face_system.ether config section
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...
Represents a predicate to accept or reject a NetworkInterfaceInfo.