26 #ifndef NFD_DAEMON_FACE_WEBSOCKET_TRANSPORT_HPP
27 #define NFD_DAEMON_FACE_WEBSOCKET_TRANSPORT_HPP
64 time::milliseconds pingInterval);
96 processErrorCode(const websocketpp::lib::error_code& error);
99 websocketpp::connection_hdl m_handle;
100 websocket::
Server& m_server;
101 time::milliseconds m_pingInterval;
102 scheduler::ScopedEventId m_pingEventId;
114 #endif // NFD_DAEMON_FACE_WEBSOCKET_TRANSPORT_HPP
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
void doClose() final
performs Transport specific operations to close the transport
WebSocketTransport(websocketpp::connection_hdl hdl, websocket::Server &server, time::milliseconds pingInterval)
stores a packet along with the remote endpoint
represents a counter of number of packets
const Counters & getCounters() const final
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...
counters provided by WebSocketTransport
counters provided by Transport
PacketCounter nOutPings
count of outgoing Pings
PacketCounter nInPongs
count of incoming Pongs
WebSocketTransportCounters Counters
counters provided by WebSocketTransport
A Transport that communicates on a WebSocket connection.