mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-27 19:45:43 +03:00
feat: add information
This commit is contained in:
@@ -32,8 +32,7 @@ void SendSystem::sendXmlAnswer(QByteArray array, PacketType packetType)
|
||||
```
|
||||
|
||||
Отправка пакета без вложения:
|
||||
`void SendSystem::sendPacketType(PacketType packetType)
|
||||
{
|
||||
`void SendSystem::sendPacketType(PacketType packetType){
|
||||
if (client->getClientType() == TypeClientAutorization::TYPE_QT_CLIENT ||
|
||||
client->getClientType() == TypeClientAutorization::TYPE_GUI)
|
||||
{
|
||||
@@ -52,8 +51,17 @@ void SendSystem::sendXmlAnswer(QByteArray array, PacketType packetType)
|
||||
socket->write(message);
|
||||
}
|
||||
}`
|
||||
|
||||
Не подходит для последнего сообщения (например при отключении клиента)
|
||||
|
||||
Отправка сервисного сообщения (тип ServerNotify)
|
||||
`void SendSystem::sendNotify(QString notify)
|
||||
{
|
||||
qDebug() << "SendNotify thread: " << QThread::currentThreadId();
|
||||
auto answer = emit sigSendNotify(notify);
|
||||
sendXmlAnswer(answer);
|
||||
}`
|
||||
|
||||
|
||||
Типы сообщений QT->Unity:
|
||||
TYPE_XMLANSWER
|
||||
Остальные QT->QT
|
||||
|
||||
Reference in New Issue
Block a user