26 #ifndef NFD_DAEMON_FACE_UNIX_STREAM_FACTORY_HPP
27 #define NFD_DAEMON_FACE_UNIX_STREAM_FACTORY_HPP
47 shared_ptr<UnixStreamChannel>
53 ndn::nfd::FacePersistency persistency,
54 bool wantLocalFieldsEnabled,
58 virtual std::vector<shared_ptr<const Channel>>
68 shared_ptr<UnixStreamChannel>
72 std::map<unix_stream::Endpoint, shared_ptr<UnixStreamChannel>> m_channels;
77 #endif // NFD_DAEMON_FACE_UNIX_STREAM_FACTORY_HPP
virtual 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.
shared_ptr< UnixStreamChannel > createChannel(const std::string &unixSocketPath)
Create stream-oriented Unix channel using specified socket path.
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...
function< void(uint32_t status, const std::string &reason)> FaceCreationFailedCallback
Prototype for the callback that is invoked when the face fails to be created.
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
virtual std::vector< shared_ptr< const Channel > > getChannels() const override
Abstract base class for all protocol factories.