17 #include <QtCore/QObject> 18 #include <QtNetwork/QTcpServer> 42 void onNewConnection();
45 void processHTTPRequest();
48 QScopedPointer<QTcpServer> mTcpServer;
49 QTcpSocket *mCurrentConnection {};
51 constexpr
static int port = 10000;
Definition: trikCommunicator.h:23
void getVariables(const QString &propertyName)
Emitted when there is a new connection with a HTTP-request of variables values.
void sendHTTPResponse(const QJsonObject &json)
Sends HTTP response with JSON data about variables.
Definition: trikVariablesServer.cpp:30
Class for script variables observing, based on HTTP server.
Definition: trikVariablesServer.h:23
TrikVariablesServer()
Constructor.
Definition: trikVariablesServer.cpp:23