ref: change PacketType receive

This commit is contained in:
semenov
2025-06-27 12:43:44 +03:00
parent a8759fdf1c
commit 77fc8301b4
117 changed files with 62 additions and 90 deletions

View File

@@ -140,8 +140,15 @@ void SendSystem::sendFileBlockWithVersion(QString localPath,QString serverPath)
void SendSystem::sendQTConnect()
{
QString value = QString::number(PacketType::TYPE_QT);
socket->write(value.toUtf8());
//QString value = QString::number(PacketType::TYPE_QT);
QByteArray container;
int numPackage = (int)PacketType::TYPE_QT;
container.append(numPackage & 0x000000ff);
container.append((numPackage >> 8) & 0x000000ff);
container.append((numPackage >> 16) & 0x000000ff);
container.append((numPackage >> 24) & 0x000000ff);
socket->write(container);
socket->waitForBytesWritten();
}