26 #ifndef NFD_DAEMON_FACE_UNIX_STREAM_FACTORY_HPP
27 #define NFD_DAEMON_FACE_UNIX_STREAM_FACTORY_HPP
40 static const std::string&
51 ndn::nfd::FacePersistency persistency,
52 bool wantLocalFieldsEnabled,
66 shared_ptr<UnixStreamChannel>
69 std::vector<shared_ptr<const Channel>>
79 shared_ptr<UnixStreamChannel>
83 std::map<unix_stream::Endpoint, shared_ptr<UnixStreamChannel>> m_channels;
89 #endif // NFD_DAEMON_FACE_UNIX_STREAM_FACTORY_HPP
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.
context for processing a config section in ProtocolFactory
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...
boost::optional< const ConfigSection & > OptionalConfigSection
an optional config file section
protocol factory for stream-oriented Unix sockets
function< void(uint32_t status, const std::string &reason)> FaceCreationFailedCallback
Prototype for the callback that is invoked when the face fails to be created.
provide support for an underlying protocol
shared_ptr< UnixStreamChannel > createChannel(const std::string &unixSocketPath)
Create stream-oriented Unix channel using specified socket path.
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...
boost::asio::local::stream_protocol::endpoint Endpoint
std::vector< shared_ptr< const Channel > > getChannels() const override
void processConfig(OptionalConfigSection configSection, FaceSystem::ConfigContext &context) override
process face_system.unix config section
static const std::string & getId()