26 #ifndef NFD_DAEMON_FACE_WEBSOCKET_TRANSPORT_HPP
27 #define NFD_DAEMON_FACE_WEBSOCKET_TRANSPORT_HPP
63 time::milliseconds pingInterval);
86 doSend(const Block& packet) final;
95 processErrorCode(const websocketpp::lib::error_code& error);
98 websocketpp::connection_hdl m_handle;
99 websocket::
Server& m_server;
100 time::milliseconds m_pingInterval;
101 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
WebSocketTransportCounters Counters
counters provided by WebSocketTransport
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
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents,...