Abstract base class for all protocol factories. More...
#include <protocol-factory.hpp>
Classes | |
class | Error |
Base class for all exceptions thrown by protocol factories. More... | |
Public Member Functions | |
virtual void | createFace (const FaceUri &uri, ndn::nfd::FacePersistency persistency, const FaceCreatedCallback &onCreated, const FaceCreationFailedCallback &onConnectFailed)=0 |
Try to create Face using the supplied FaceUri. More... | |
virtual std::vector< shared_ptr< const Channel > > | getChannels () const =0 |
Abstract base class for all protocol factories.
Definition at line 37 of file protocol-factory.hpp.
|
pure 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 |
Implemented in nfd::UdpFactory, nfd::TcpFactory, nfd::EthernetFactory, nfd::WebSocketFactory, and nfd::UnixStreamFactory.
Referenced by nfd::ProtocolFactory::Error::Error().
|
pure virtual |
Implemented in nfd::UdpFactory, nfd::TcpFactory, nfd::EthernetFactory, nfd::WebSocketFactory, and nfd::UnixStreamFactory.
Referenced by nfd::ProtocolFactory::Error::Error(), and nfd::FaceManager::setConfigFile().