mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-28 19:55:48 +03:00
sendFileBlock_V3
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user