BALL 1.5.0
Loading...
Searching...
No Matches
pyServer.h
Go to the documentation of this file.
1#ifndef BALL_PYTHON_PYSERVER_H
2#define BALL_PYTHON_PYSERVER_H
3
5
6#include <QtNetwork/QTcpServer>
7
8#include <memory>
9
10namespace BALL
11{
13 {
14 public:
19
20 ~PyServer() = default;
21
26
27 private:
35 void processExecuteRequest(QTcpSocket* client, const QString& request);
36
44 QByteArray createMessage(QString msg_type, QString content);
45
51 void disconnectClient(QTcpSocket* client);
52
53 std::unique_ptr<QTcpServer> server_ {nullptr};
54 };
55}
56
57#endif // BALL_PYTHON_PYSERVER_H
void processRequest()
~PyServer()=default
#define BALL_EXPORT