sendFileBlock_V3

This commit is contained in:
2026-02-18 17:20:20 +03:00
parent ed7de8af4e
commit 594aa8311e
9 changed files with 342 additions and 72 deletions

View File

@@ -4,6 +4,7 @@ MultiThreadServer::MultiThreadServer(UpdateController *updateController, DocsUpd
DataParser *dataParser,qint16 hostPort, QObject *parent ):
QTcpServer(parent),
mutex(nullptr),
clientsMap(nullptr),
hostPort(hostPort),
processingSystem(processingSystem),
updateController(updateController),
@@ -23,6 +24,7 @@ MultiThreadServer::MultiThreadServer(UpdateController *updateController, DocsUpd
MultiThreadServer::~MultiThreadServer()
{
delete mutex;
delete clientsMap;
}
void MultiThreadServer::incomingConnection(qintptr socketDesriptor)

View File

@@ -33,7 +33,7 @@ public:
{
return stateBlockAutorization;
}
EStateServer getStateServer()
EStateServer getStateServer() const
{
return stateServer;
}
@@ -58,6 +58,9 @@ private:
emit signal_StateServer(stateServer, stateBlockAutorization);
}
void removeClient(int idSocket);
void addClient(qintptr descriptor, ClientHandler *client);
signals:
//void sigInitClient(int descriptor, ServerLMSWidget *serverWidget,
// UpdateController *updateController, DataParser *dataParser, QMutex *mutex);
@@ -95,10 +98,7 @@ private:
EStateServer stateServer;
EStateBlockAutorization stateBlockAutorization;
QMap<QString, QString> blockersMap;
void removeClient(int idSocket);
void addClient(qintptr descriptor, ClientHandler *client);
QMap<QString, QString> blockersMap;
};
#endif // MULTITHREADSERVER_H