#include <websocket_server.h>
Public Member Functions | |
virtual bool | isDebugPlugin () override |
virtual bool | isRunning () const override |
virtual const char * | name () const override |
virtual void | shutdown () override |
virtual bool | start (QStringList *) override |
WebsocketServer () | |
virtual | ~WebsocketServer () override |
Public Member Functions inherited from PJ::DataStreamer | |
MessageParserFactory * | availableParsers () |
PlotDataMapRef & | dataMap () |
const PlotDataMapRef & | dataMap () const |
DataStreamer () | |
std::mutex & | mutex () |
void | setAvailableParsers (MessageParserFactory *parsers) |
void | setMaximumRange (double range) |
virtual | ~DataStreamer ()=default |
Public Member Functions inherited from PJ::PlotJugglerPlugin | |
virtual const std::vector< QAction * > & | availableActions () |
virtual QWidget * | optionsWidget () |
PlotJugglerPlugin () | |
virtual bool | xmlLoadState (const QDomElement &parent_element) |
virtual bool | xmlSaveState (QDomDocument &doc, QDomElement &parent_element) const |
QDomElement | xmlSaveState (QDomDocument &doc) const |
Private Slots | |
void | onNewConnection () |
void | processMessage (QString message) |
void | socketDisconnected () |
Private Attributes | |
QList< QWebSocket * > | _clients |
PJ::MessageParserPtr | _parser |
bool | _running |
QWebSocketServer | _server |
Additional Inherited Members | |
Signals inherited from PJ::DataStreamer | |
void | clearBuffers () |
void | closed () |
void | dataReceived () |
Definition at line 27 of file websocket_server.h.
WebsocketServer::WebsocketServer | ( | ) |
Definition at line 58 of file websocket_server.cpp.
|
overridevirtual |
Definition at line 66 of file websocket_server.cpp.
|
inlineoverridevirtual |
Reimplemented from PJ::PlotJugglerPlugin.
Definition at line 52 of file websocket_server.h.
|
inlineoverridevirtual |
Implements PJ::DataStreamer.
Definition at line 40 of file websocket_server.h.
|
inlineoverridevirtual |
Implements PJ::PlotJugglerPlugin.
Definition at line 47 of file websocket_server.h.
|
privateslot |
Definition at line 168 of file websocket_server.cpp.
|
privateslot |
Definition at line 176 of file websocket_server.cpp.
|
overridevirtual |
Implements PJ::DataStreamer.
Definition at line 158 of file websocket_server.cpp.
|
privateslot |
Definition at line 203 of file websocket_server.cpp.
|
overridevirtual |
Implements PJ::DataStreamer.
Definition at line 71 of file websocket_server.cpp.
|
private |
Definition at line 59 of file websocket_server.h.
|
private |
Definition at line 61 of file websocket_server.h.
|
private |
Definition at line 58 of file websocket_server.h.
|
private |
Definition at line 60 of file websocket_server.h.