mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-28 19:55:48 +03:00
TrayServerLMS рабочая версия
This commit is contained in:
@@ -60,6 +60,7 @@ bool MultiThreadServer::stopServer()
|
||||
//Закрываем сервер
|
||||
close();
|
||||
stateServer = stoped;
|
||||
Logger::instance().log("SERVER: stop OK");
|
||||
return true;
|
||||
}
|
||||
else
|
||||
@@ -73,7 +74,7 @@ QMap<int, ClientHandler *> *MultiThreadServer::getClientsMap() const
|
||||
|
||||
void MultiThreadServer::updateClientList()
|
||||
{
|
||||
serverLmsWidget->slotUpdateListClients();
|
||||
serverLmsWidget->slot_UpdateListClients();
|
||||
}
|
||||
|
||||
void MultiThreadServer::disableClients()
|
||||
@@ -130,19 +131,19 @@ void MultiThreadServer::slotDisconnectClient(QString peerAddress, QString peerPo
|
||||
emit signalStopSendFile();
|
||||
Logger::instance().log("SERVER: Client " + login + " disconnected");
|
||||
|
||||
serverLmsWidget->slotUpdateListClients();
|
||||
serverLmsWidget->slot_UpdateListClients();
|
||||
serverLmsWidget->getProcessingSystem()->processingClientDeAutorization(login);
|
||||
}
|
||||
|
||||
void MultiThreadServer::removeClient(int idSocket)
|
||||
{
|
||||
clientsMap->remove(idSocket);
|
||||
serverLmsWidget->slotUpdateListClients();
|
||||
serverLmsWidget->slot_UpdateListClients();
|
||||
}
|
||||
|
||||
void MultiThreadServer::addClient(qintptr descriptor, ClientHandler *client)
|
||||
{
|
||||
(*clientsMap)[descriptor] = client;
|
||||
serverLmsWidget->slotUpdateListClients();
|
||||
serverLmsWidget->slot_UpdateListClients();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user