добавил очищение списка клиентов в сервере при Стопе

This commit is contained in:
krivoshein
2024-11-28 10:51:02 +03:00
parent 988812a1cb
commit f98b2e2beb
9 changed files with 74 additions and 30 deletions

Binary file not shown.

View File

@@ -46,3 +46,33 @@
64 3704 7544803908142867 CMakeFiles/ServerLMS.dir/Systems/dataparser.cpp.obj 51dcd51461a6b016
3704 4208 7544803913168184 libServerLMS.dll 72d9d1ee4784dd54
3704 4208 7544803913168184 libServerLMS.dll.a 72d9d1ee4784dd54
15 70 0 CMakeFiles/ServerLMS_autogen a1ba014d73005738
15 70 0 ServerLMS_autogen/mocs_compilation.cpp a1ba014d73005738
15 70 0 ServerLMS_autogen/include/ui_serverlmswidget.h a1ba014d73005738
15 70 0 ServerLMS_autogen/include/ui_messangerwidget.h a1ba014d73005738
15 70 0 D:/LMS/ServerLMS/Debug64/CMakeFiles/ServerLMS_autogen a1ba014d73005738
15 70 0 D:/LMS/ServerLMS/Debug64/ServerLMS_autogen/mocs_compilation.cpp a1ba014d73005738
15 70 0 D:/LMS/ServerLMS/Debug64/ServerLMS_autogen/include/ui_serverlmswidget.h a1ba014d73005738
15 70 0 D:/LMS/ServerLMS/Debug64/ServerLMS_autogen/include/ui_messangerwidget.h a1ba014d73005738
70 2564 7544822244090533 CMakeFiles/ServerLMS.dir/serverlmswidget.cpp.obj 7f4281861236c54a
2564 3147 7544822249891861 libServerLMS.dll 72d9d1ee4784dd54
2564 3147 7544822249891861 libServerLMS.dll.a 72d9d1ee4784dd54
18 58 0 CMakeFiles/ServerLMS_autogen a1ba014d73005738
18 58 0 ServerLMS_autogen/mocs_compilation.cpp a1ba014d73005738
18 58 0 ServerLMS_autogen/include/ui_serverlmswidget.h a1ba014d73005738
18 58 0 ServerLMS_autogen/include/ui_messangerwidget.h a1ba014d73005738
18 58 0 D:/LMS/ServerLMS/Debug64/CMakeFiles/ServerLMS_autogen a1ba014d73005738
18 58 0 D:/LMS/ServerLMS/Debug64/ServerLMS_autogen/mocs_compilation.cpp a1ba014d73005738
18 58 0 D:/LMS/ServerLMS/Debug64/ServerLMS_autogen/include/ui_serverlmswidget.h a1ba014d73005738
18 58 0 D:/LMS/ServerLMS/Debug64/ServerLMS_autogen/include/ui_messangerwidget.h a1ba014d73005738
58 2308 7544829037591958 CMakeFiles/ServerLMS.dir/serverlmswidget.cpp.obj 7f4281861236c54a
2308 2786 7544829042345253 libServerLMS.dll 72d9d1ee4784dd54
2308 2786 7544829042345253 libServerLMS.dll.a 72d9d1ee4784dd54
18 56 0 CMakeFiles/ServerLMS_autogen a1ba014d73005738
18 56 0 ServerLMS_autogen/mocs_compilation.cpp a1ba014d73005738
18 56 0 ServerLMS_autogen/include/ui_serverlmswidget.h a1ba014d73005738
18 56 0 ServerLMS_autogen/include/ui_messangerwidget.h a1ba014d73005738
18 56 0 D:/LMS/ServerLMS/Debug64/CMakeFiles/ServerLMS_autogen a1ba014d73005738
18 56 0 D:/LMS/ServerLMS/Debug64/ServerLMS_autogen/mocs_compilation.cpp a1ba014d73005738
18 56 0 D:/LMS/ServerLMS/Debug64/ServerLMS_autogen/include/ui_serverlmswidget.h a1ba014d73005738
18 56 0 D:/LMS/ServerLMS/Debug64/ServerLMS_autogen/include/ui_messangerwidget.h a1ba014d73005738

View File

@@ -1,38 +1,38 @@
# Generated by CMake. Changes will be overwritten.
D:/LMS/ServerLMS/ServerLMS/serverlmswidget.cpp
uic:ui_serverlmswidget.h
D:/LMS/ServerLMS/ServerLMS/multithreadserver.cpp
D:/LMS/ServerLMS/ServerLMS/clienthandler.cpp
D:/LMS/ServerLMS/ServerLMS/Systems/updatecontroller.cpp
D:/LMS/ServerLMS/ServerLMS/Systems/recognizesystem.cpp
D:/LMS/ServerLMS/ServerLMS/messangerwidget.cpp
uic:ui_messangerwidget.h
D:/LMS/ServerLMS/ServerLMS/Systems/processingsystem.cpp
D:/LMS/ServerLMS/ServerLMS/Systems/logger.cpp
D:/LMS/ServerLMS/ServerLMS/typesDataServerClient.h
D:/LMS/ServerLMS/ServerLMS/Client.h
D:/LMS/ServerLMS/ServerLMS/multithreadserver.h
mmc:Q_OBJECT
D:/LMS/ServerLMS/ServerLMS/Systems/sendsystem.h
mmc:Q_OBJECT
D:/LMS/ServerLMS/ServerLMS/ServerLMS_global.h
D:/LMS/ServerLMS/ServerLMS/multithreadserver.h
mmc:Q_OBJECT
D:/LMS/ServerLMS/ServerLMS/Client.h
D:/LMS/ServerLMS/ServerLMS/typesDataServerClient.h
D:/LMS/ServerLMS/ServerLMS/Systems/processingsystem.cpp
D:/LMS/ServerLMS/ServerLMS/messangerwidget.cpp
uic:ui_messangerwidget.h
D:/LMS/ServerLMS/ServerLMS/Systems/updatecontroller.cpp
D:/LMS/ServerLMS/ServerLMS/clienthandler.cpp
D:/LMS/ServerLMS/ServerLMS/Systems/logger.cpp
D:/LMS/ServerLMS/ServerLMS/Systems/recognizesystem.cpp
D:/LMS/ServerLMS/ServerLMS/multithreadserver.cpp
D:/LMS/ServerLMS/ServerLMS/serverlmswidget.h
mmc:Q_OBJECT
D:/LMS/ServerLMS/ServerLMS/Systems/dataparser.cpp
D:/LMS/ServerLMS/ServerLMS/messangerwidget.h
mmc:Q_OBJECT
D:/LMS/ServerLMS/ServerLMS/Systems/sendsystem.cpp
D:/LMS/ServerLMS/ServerLMS/Systems/dataparser.h
mmc:Q_OBJECT
D:/LMS/ServerLMS/ServerLMS/clienthandler.h
mmc:Q_OBJECT
D:/LMS/ServerLMS/ServerLMS/Systems/tools.h
D:/LMS/ServerLMS/ServerLMS/Systems/updatecontroller.h
mmc:Q_OBJECT
D:/LMS/ServerLMS/ServerLMS/Systems/recognizesystem.h
mmc:Q_OBJECT
D:/LMS/ServerLMS/ServerLMS/Systems/processingsystem.h
mmc:Q_OBJECT
D:/LMS/ServerLMS/ServerLMS/Systems/tools.cpp
D:/LMS/ServerLMS/ServerLMS/Systems/logger.h
mmc:Q_OBJECT
D:/LMS/ServerLMS/ServerLMS/Systems/processingsystem.h
mmc:Q_OBJECT
D:/LMS/ServerLMS/ServerLMS/Systems/recognizesystem.h
mmc:Q_OBJECT
D:/LMS/ServerLMS/ServerLMS/Systems/updatecontroller.h
mmc:Q_OBJECT
D:/LMS/ServerLMS/ServerLMS/Systems/tools.h
D:/LMS/ServerLMS/ServerLMS/clienthandler.h
mmc:Q_OBJECT
D:/LMS/ServerLMS/ServerLMS/Systems/sendsystem.cpp
D:/LMS/ServerLMS/ServerLMS/messangerwidget.h
mmc:Q_OBJECT
D:/LMS/ServerLMS/ServerLMS/Systems/dataparser.cpp
D:/LMS/ServerLMS/ServerLMS/serverlmswidget.h
mmc:Q_OBJECT
D:/LMS/ServerLMS/ServerLMS/serverlmswidget.cpp
uic:ui_serverlmswidget.h

Binary file not shown.

Binary file not shown.

View File

@@ -142,7 +142,8 @@ bool ServerLMSWidget::stopServer()
autorizationHandler(clientsMap[idSocket]->getClient()->getLogin());
clientsMap[idSocket]->sigSocketClose();
clientsMap.remove(idSocket);
//clientsMap.remove(idSocket);
removeClient(idSocket);
}
//Закрываем сервер
@@ -198,6 +199,7 @@ void ServerLMSWidget::slotAddToMessanger(QString login, QString text)
void ServerLMSWidget::removeClient(int idSocket)
{
clientsMap.remove(idSocket);
slotUpdateListClients();
}
void ServerLMSWidget::addClient(qintptr descriptor, ClientHandler *client)