26 #ifndef NFD_DAEMON_FACE_ETHERNET_FACTORY_HPP
27 #define NFD_DAEMON_FACE_ETHERNET_FACTORY_HPP
50 typedef std::map<std::pair<std::string, ethernet::Address>,
70 const ethernet::Address& address);
75 const MulticastFaceMap&
81 ndn::nfd::FacePersistency persistency,
82 bool wantLocalFieldsEnabled,
86 virtual std::vector<shared_ptr<const Channel>>
97 findMulticastFace(
const std::string& interfaceName,
98 const ethernet::Address& address)
const;
101 MulticastFaceMap m_multicastFaces;
107 return m_multicastFaces;
112 #endif // NFD_DAEMON_FACE_ETHERNET_FACTORY_HPP
contains information about a network interface
virtual std::vector< shared_ptr< const Channel > > getChannels() const override
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...
shared_ptr< Face > createMulticastFace(const NetworkInterfaceInfo &interface, const ethernet::Address &address)
Create an EthernetFace to communicate with the given multicast group.
function< void(uint32_t status, const std::string &reason)> FaceCreationFailedCallback
Prototype for the callback that is invoked when the face fails to be created.
Base class for all exceptions thrown by protocol factories.
const MulticastFaceMap & getMulticastFaces() const
Get map of configured multicast faces.
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...
std::map< std::pair< std::string, ethernet::Address >, shared_ptr< Face > > MulticastFaceMap
Error(const std::string &what)
virtual void createFace(const FaceUri &uri, ndn::nfd::FacePersistency persistency, bool wantLocalFieldsEnabled, const FaceCreatedCallback &onCreated, const FaceCreationFailedCallback &onFailure) override
Try to create Face using the supplied FaceUri.
Exception of EthernetFactory.
Abstract base class for all protocol factories.