protocol factory for Ethernet
More...
#include <daemon/face/ethernet-factory.hpp>
|
template<typename ChannelMap > |
static std::vector< shared_ptr< const Channel > > | getChannelsFromMap (const ChannelMap &channelMap) |
|
protocol factory for Ethernet
Definition at line 37 of file ethernet-factory.hpp.
nfd::face::EthernetFactory::EthernetFactory |
( |
const CtorParams & |
params | ) |
|
|
explicit |
Create a protocol factory instance.
- Return values
-
nullptr | if factory with id is not registered |
Definition at line 41 of file protocol-factory.cpp.
shared_ptr< EthernetChannel > nfd::face::EthernetFactory::createChannel |
( |
const shared_ptr< const ndn::net::NetworkInterface > & |
localEndpoint, |
|
|
time::nanoseconds |
idleTimeout |
|
) |
| |
Create Ethernet-based channel on the specified network interface.
If this method is called twice with the same endpoint, only one channel will be created. The second call will just return the existing channel.
- Returns
- always a valid pointer to a EthernetChannel object, an exception is thrown if it cannot be created.
- Exceptions
-
Definition at line 216 of file ethernet-factory.cpp.
Try to create face using the supplied parameters.
- Parameters
-
params | parameters to create face with |
onCreated | callback if face creation succeeds or face already exists; persistency and local fields settings are not updated on an existing face |
onFailure | callback if face creation fails |
Implements nfd::face::ProtocolFactory.
Definition at line 168 of file ethernet-factory.cpp.
shared_ptr< Face > nfd::face::EthernetFactory::createMulticastFace |
( |
const ndn::net::NetworkInterface & |
localEndpoint, |
|
|
const ethernet::Address & |
group |
|
) |
| |
Create a face to communicate on the given Ethernet multicast group.
If this method is called twice with the same arguments, only one face will be created. The second call will just return the existing face.
- Parameters
-
localEndpoint | local network interface |
group | multicast group address |
- Exceptions
-
Definition at line 236 of file ethernet-factory.cpp.
std::vector< shared_ptr< const Channel > > nfd::face::EthernetFactory::getChannels |
( |
| ) |
const |
|
overridevirtual |
template<typename ChannelMap >
static std::vector<shared_ptr<const Channel> > nfd::face::ProtocolFactory::getChannelsFromMap |
( |
const ChannelMap & |
channelMap | ) |
|
|
inlinestaticprotectedinherited |
const std::string & nfd::face::EthernetFactory::getId |
( |
| ) |
|
|
static |
const std::set<std::string>& nfd::face::ProtocolFactory::getProvidedSchemes |
( |
| ) |
|
|
inlineinherited |
std::set< std::string > nfd::face::ProtocolFactory::listRegistered |
( |
| ) |
|
|
staticinherited |
template<typename PF >
static void nfd::face::ProtocolFactory::registerType |
( |
const std::string & |
id = PF::getId() | ) |
|
|
inlinestaticinherited |
Register a protocol factory type.
- Template Parameters
-
- Parameters
-
Definition at line 70 of file protocol-factory.hpp.
shared_ptr<ndn::net::NetworkMonitor> nfd::face::ProtocolFactory::netmon |
|
protectedinherited |
NetworkMonitor for listing available network interfaces and monitoring their changes.
ProtocolFactory subclass should check the NetworkMonitor has sufficient capabilities prior to usage.
Definition at line 191 of file protocol-factory.hpp.
std::set<std::string> nfd::face::ProtocolFactory::providedSchemes |
|
protectedinherited |