This commit is contained in:
2026-01-22 18:49:06 +03:00
parent 455b3f384e
commit d1d259a854
8 changed files with 114 additions and 81 deletions

View File

@@ -26,6 +26,12 @@ void MultiThreadServer::incomingConnection(qintptr socketDesriptor)
addClient(socketDesriptor,newClient);
Logger::instance().log("To Client: " + QString(SERVER_HELLO));
//Отправляем состояние блокировки
if(getStateBlockAutorization() == EStateBlockAutorization::blocked)
newClient->sendPacketType(PacketType::BUSY);
else
newClient->sendPacketType(PacketType::FREE);
}
bool MultiThreadServer::startServer()