26 #ifndef NFD_DAEMON_FACE_UNIX_STREAM_FACTORY_HPP 27 #define NFD_DAEMON_FACE_UNIX_STREAM_FACTORY_HPP 40 static const std::string&
67 shared_ptr<UnixStreamChannel>
70 std::vector<shared_ptr<const Channel>>
80 shared_ptr<UnixStreamChannel>
84 std::map<unix_stream::Endpoint, shared_ptr<UnixStreamChannel>> m_channels;
90 #endif // NFD_DAEMON_FACE_UNIX_STREAM_FACTORY_HPP
void createFace(const CreateFaceParams ¶ms, const FaceCreatedCallback &onCreated, const FaceCreationFailedCallback &onFailure) override
Try to create face using the supplied parameters.
std::vector< shared_ptr< const Channel > > getChannels() const override
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
UnixStreamFactory(const CtorParams ¶ms)
function< void(uint32_t status, const std::string &reason)> FaceCreationFailedCallback
Prototype for the callback that is invoked when a face fails to be created.
Provides support for an underlying protocol.
Parameters to ProtocolFactory constructor.
shared_ptr< UnixStreamChannel > createChannel(const std::string &unixSocketPath)
Create stream-oriented Unix channel using specified socket path.
boost::asio::local::stream_protocol::endpoint Endpoint
Parameters to ProtocolFactory::createFace.
void processConfig(OptionalConfigSection configSection, FaceSystem::ConfigContext &context) override
process face_system.unix config section
static const std::string & getId()
function< void(const shared_ptr< Face > &newFace)> FaceCreatedCallback
Prototype for the callback that is invoked when a face is created (in response to an incoming connect...