26 #ifndef NFD_DAEMON_FACE_WEBSOCKET_FACTORY_HPP 27 #define NFD_DAEMON_FACE_WEBSOCKET_FACTORY_HPP 40 static const std::string&
71 shared_ptr<WebSocketChannel>
74 std::vector<shared_ptr<const Channel>>
78 std::map<websocket::Endpoint, shared_ptr<WebSocketChannel>> m_channels;
84 #endif // NFD_DAEMON_FACE_WEBSOCKET_FACTORY_HPP protocol factory for WebSocket
WebSocketFactory(const CtorParams ¶ms)
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
shared_ptr< WebSocketChannel > createChannel(const websocket::Endpoint &localEndpoint)
Create WebSocket-based channel using websocket::Endpoint.
function< void(uint32_t status, const std::string &reason)> FaceCreationFailedCallback
Prototype for the callback that is invoked when a face fails to be created.
void createFace(const CreateFaceParams ¶ms, const FaceCreatedCallback &onCreated, const FaceCreationFailedCallback &onFailure) override
unicast face creation is not supported and will always fail
Provides support for an underlying protocol.
Parameters to ProtocolFactory constructor.
std::vector< shared_ptr< const Channel > > getChannels() const override
Parameters to ProtocolFactory::createFace.
boost::asio::ip::tcp::endpoint Endpoint
void processConfig(OptionalConfigSection configSection, FaceSystem::ConfigContext &context) override
process face_system.websocket 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...