26 #ifndef NFD_DAEMON_FACE_WEBSOCKET_TRANSPORT_HPP
27 #define NFD_DAEMON_FACE_WEBSOCKET_TRANSPORT_HPP
64 time::milliseconds pingInterval);
66 virtual const Counters&
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 scheduler::ScopedEventId m_pingEventId;
117 #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
virtual 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
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...
counters provided by WebSocketTransport
virtual const Counters & getCounters() const override
counters provided by Transport
PacketCounter nOutPings
count of outgoing Pings
PacketCounter nInPongs
count of incoming Pongs
virtual void beforeChangePersistency(ndn::nfd::FacePersistency newPersistency) final
invoked before persistency is changed
WebSocketTransportCounters Counters
counters provided by WebSocketTransport
A Transport that communicates on a WebSocket connection.