Loading...
Searching...
No Matches
pyServer.h
Go to the documentation of this file.
#ifndef BALL_PYTHON_PYSERVER_H
#define BALL_PYTHON_PYSERVER_H
#include <BALL/COMMON/global.h>
#include <QtNetwork/QTcpServer>
#include <memory>
namespace BALL
{
class BALL_EXPORT PyServer final
{
public:
PyServer();
~PyServer() = default;
void processRequest();
private:
void processExecuteRequest(QTcpSocket* client, const QString& request);
QByteArray createMessage(QString msg_type, QString content);
void disconnectClient(QTcpSocket* client);
std::unique_ptr<QTcpServer> server_ {nullptr};
};
}
#endif // BALL_PYTHON_PYSERVER_H
global.h
BALL_EXPORT
#define BALL_EXPORT
Definition COMMON/global.h:50
BALL::PyServer::processRequest
void processRequest()
BALL::PyServer::PyServer
PyServer()
BALL::PyServer::~PyServer
~PyServer()=default
BALL
Definition constants.h:13