26 #ifndef NFD_DAEMON_FACE_WEBSOCKET_FACTORY_HPP
27 #define NFD_DAEMON_FACE_WEBSOCKET_FACTORY_HPP
40 static const std::string&
53 ndn::nfd::FacePersistency persistency,
54 bool wantLocalFieldsEnabled,
70 shared_ptr<WebSocketChannel>
79 shared_ptr<WebSocketChannel>
80 createChannel(
const std::string& localIp,
const std::string& localPort);
82 std::vector<shared_ptr<const Channel>>
92 shared_ptr<WebSocketChannel>
96 std::map<websocket::Endpoint, shared_ptr<WebSocketChannel>> m_channels;
102 #endif // NFD_DAEMON_FACE_WEBSOCKET_FACTORY_HPP
protocol factory for WebSocket
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
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 the face fails to be created.
provide support for an underlying protocol
void createFace(const FaceUri &uri, ndn::nfd::FacePersistency persistency, bool wantLocalFieldsEnabled, const FaceCreatedCallback &onCreated, const FaceCreationFailedCallback &onFailure) override
unicast face creation is not supported and will always fail
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::ip::tcp::endpoint Endpoint
void processConfig(OptionalConfigSection configSection, FaceSystem::ConfigContext &context) override
process face_system.websocket config section
static const std::string & getId()