26 #ifndef NFD_DAEMON_FACE_WEBSOCKET_TRANSPORT_HPP
27 #define NFD_DAEMON_FACE_WEBSOCKET_TRANSPORT_HPP
62 time::milliseconds pingInterval);
84 doSend(const Block& packet) final;
93 processErrorCode(const websocketpp::lib::error_code& error);
96 websocketpp::connection_hdl m_handle;
97 websocket::
Server& m_server;
98 time::milliseconds m_pingInterval;
99 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.
WebSocketTransport(websocketpp::connection_hdl hdl, websocket::Server &server, time::milliseconds pingInterval)
const Counters & getCounters() const final
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