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