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 bool m_wantCongestionMarking =
false;
85 std::map<unix_stream::Endpoint, shared_ptr<UnixStreamChannel>> m_channels;
91 #endif // NFD_DAEMON_FACE_UNIX_STREAM_FACTORY_HPP function< void(const shared_ptr< Face > &face)> FaceCreatedCallback
Prototype for the callback that is invoked when a face is created (in response to an incoming connect...
void createFace(const CreateFaceRequest &req, const FaceCreatedCallback &onCreated, const FaceCreationFailedCallback &onFailure) override
Try to create a unicast face using the supplied parameters.
function< void(uint32_t status, const std::string &reason)> FaceCreationFailedCallback
Prototype for the callback that is invoked when a face fails to be created.
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)
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
void processConfig(OptionalConfigSection configSection, FaceSystem::ConfigContext &context) override
process face_system.unix config section
Encapsulates a face creation request and all its parameters.
static const std::string & getId()