26 #ifndef NFD_DAEMON_FACE_WEBSOCKET_FACTORY_HPP
27 #define NFD_DAEMON_FACE_WEBSOCKET_FACTORY_HPP
49 shared_ptr<WebSocketChannel>
58 shared_ptr<WebSocketChannel>
59 createChannel(
const std::string& localIp,
const std::string& localPort);
64 ndn::nfd::FacePersistency persistency,
65 bool wantLocalFieldsEnabled,
69 virtual std::vector<shared_ptr<const Channel>>
79 shared_ptr<WebSocketChannel>
83 std::map<websocket::Endpoint, shared_ptr<WebSocketChannel>> m_channels;
88 #endif // NFD_DAEMON_FACE_WEBSOCKET_FACTORY_HPP
shared_ptr< WebSocketChannel > createChannel(const websocket::Endpoint &localEndpoint)
Create WebSocket-based channel using websocket::Endpoint.
virtual std::vector< shared_ptr< const Channel > > getChannels() const override
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...
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.
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::ip::tcp::endpoint Endpoint
Abstract base class for all protocol factories.