26 #ifndef NFD_DAEMON_FACE_WEBSOCKET_TRANSPORT_HPP
27 #define NFD_DAEMON_FACE_WEBSOCKET_TRANSPORT_HPP
32 #include <ndn-cxx/util/scheduler.hpp>
64 time::milliseconds pingInterval);
90 doSend(const Block& packet) final;
99 processErrorCode(const websocketpp::lib::error_code& error);
102 websocketpp::connection_hdl m_handle;
103 websocket::
Server& m_server;
104 time::milliseconds m_pingInterval;
105 ndn::scheduler::ScopedEventId m_pingEventId;
Represents a counter of number of packets.
Counters provided by a transport.
The lower half of a Face.
Counters provided by WebSocketTransport.
PacketCounter nInPongs
Count of incoming pongs.
PacketCounter nOutPings
Count of outgoing pings.
A Transport that communicates on a WebSocket connection.
void doClose() final
Performs Transport specific operations to close the transport.
const Counters & getCounters() const final
WebSocketTransport(websocketpp::connection_hdl hdl, websocket::Server &server, time::milliseconds pingInterval)
void receiveMessage(const std::string &msg)
Translates a message into a Block and delivers it to the link service.
websocketpp::server< websocketpp::config::asio > Server