26 #ifndef NFD_DAEMON_FACE_PROTOCOL_FACTORY_HPP
27 #define NFD_DAEMON_FACE_PROTOCOL_FACTORY_HPP
30 #include <ndn-cxx/encoding/nfd-constants.hpp>
43 class Error :
public std::runtime_error
48 :
std::runtime_error(what)
68 ndn::nfd::FacePersistency persistency,
69 bool wantLocalFieldsEnabled,
73 virtual std::vector<shared_ptr<const Channel>>
79 #endif // NFD_DAEMON_FACE_PROTOCOL_FACTORY_HPP
virtual void createFace(const FaceUri &uri, ndn::nfd::FacePersistency persistency, bool wantLocalFieldsEnabled, const FaceCreatedCallback &onCreated, const FaceCreationFailedCallback &onFailure)=0
Try to create Face using the supplied FaceUri.
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...
Error(const std::string &what)
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.
virtual std::vector< shared_ptr< const Channel > > getChannels() const =0
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...
Abstract base class for all protocol factories.