#include <ethernet-factory.hpp>
Classes | |
class | Error |
Exception of EthernetFactory. More... | |
Public Types | |
typedef std::map< std::pair< std::string, ethernet::Address >, shared_ptr< EthernetFace > > | MulticastFaceMap |
Public Member Functions | |
virtual void | createFace (const FaceUri &uri, ndn::nfd::FacePersistency persistency, const FaceCreatedCallback &onCreated, const FaceConnectFailedCallback &onConnectFailed) 1 |
Try to create Face using the supplied FaceUri. More... | |
shared_ptr< EthernetFace > | createMulticastFace (const NetworkInterfaceInfo &interface, const ethernet::Address &address) |
Create an EthernetFace to communicate with the given multicast group. More... | |
const MulticastFaceMap & | getMulticastFaces () const |
Get map of configured multicast faces. More... | |
virtual std::list< shared_ptr< const Channel > > | getChannels () const |
Definition at line 36 of file ethernet-factory.hpp.
typedef std::map<std::pair<std::string, ethernet::Address>, shared_ptr<EthernetFace> > nfd::EthernetFactory::MulticastFaceMap |
Definition at line 53 of file ethernet-factory.hpp.
|
virtual |
Try to create Face using the supplied FaceUri.
This method should automatically choose channel, based on supplied FaceUri and create face.
Error | Factory does not support connect operation |
Error | specified persistency is not supported |
Implements nfd::ProtocolFactory.
Definition at line 69 of file ethernet-factory.cpp.
shared_ptr< EthernetFace > nfd::EthernetFactory::createMulticastFace | ( | const NetworkInterfaceInfo & | interface, |
const ethernet::Address & | address | ||
) |
Create an EthernetFace to communicate with the given multicast group.
If this method is called twice with the same interface and group, only one face will be created. Instead, the second call will just retrieve the existing face.
interface | Local network interface |
address | Ethernet broadcast/multicast destination address |
EthernetFactory::Error | or EthernetFace::Error |
Definition at line 35 of file ethernet-factory.cpp.
References nfd::getGlobalIoService(), ndn::util::ethernet::Address::isMulticast(), nfd::NetworkInterfaceInfo::name, and ndn::util::ethernet::Address::toString().
|
inline |
Get map of configured multicast faces.
Definition at line 108 of file ethernet-factory.hpp.
|
virtual |
Implements nfd::ProtocolFactory.
Definition at line 78 of file ethernet-factory.cpp.