added a check that S1 + messageInitiationSize should not be equal to S2 + messageResponseSize (#754)

This commit is contained in:
Nethius 2024-04-17 17:28:47 +07:00 committed by GitHub
parent af90065d2e
commit 98e6358fd3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 42 additions and 5 deletions

View file

@ -6,6 +6,11 @@
#include "containers/containers_defs.h"
namespace AwgConstant {
const int messageInitiationSize = 148;
const int messageResponseSize = 92;
}
struct AwgConfig
{
AwgConfig(const QJsonObject &jsonConfig);
@ -57,6 +62,9 @@ public slots:
void updateModel(const QJsonObject &config);
QJsonObject getConfig();
bool isHeadersEqual(const QString &h1, const QString &h2, const QString &h3, const QString &h4);
bool isPacketSizeEqual(const int s1, const int s2);
protected:
QHash<int, QByteArray> roleNames() const override;