Bump Vatsim protocol version number

This commit is contained in:
Mat Sutcliffe
2022-01-29 14:32:11 +00:00
parent a4448dddc6
commit 4b00c0e3bf
3 changed files with 4 additions and 3 deletions

View File

@@ -149,7 +149,7 @@ namespace BlackCore::Fsd
const QString codecName(server.getFsdSetup().getTextCodec());
QTextCodec *textCodec = QTextCodec::codecForName(codecName.toLocal8Bit());
if (!textCodec) { textCodec = QTextCodec::codecForName("utf-8"); }
const int protocolRev = (server.getServerType() == CServer::FSDServerVatsim) ? PROTOCOL_REVISION_VATSIM_AUTH : PROTOCOL_REVISION_CLASSIC;
const int protocolRev = (server.getServerType() == CServer::FSDServerVatsim) ? PROTOCOL_REVISION_VATSIM_VELOCITY : PROTOCOL_REVISION_CLASSIC;
QWriteLocker l(&m_lockUserClientBuffered);
m_server = server;

View File

@@ -54,6 +54,7 @@
#define PROTOCOL_REVISION_CLASSIC 9
#define PROTOCOL_REVISION_VATSIM_ATC 10
#define PROTOCOL_REVISION_VATSIM_AUTH 100
#define PROTOCOL_REVISION_VATSIM_VELOCITY 101
//! @}
namespace BlackFsdTest { class CTestFSDClient; }

View File

@@ -379,7 +379,7 @@ namespace BlackFsdTest
QList<QVariant> arguments = spy.takeFirst();
QCOMPARE(arguments.size(), 1);
CRawFsdMessage fsdMessage = arguments.at(0).value<CRawFsdMessage>();
QCOMPARE(fsdMessage.getRawMessage(), "FSD Sent=>#APABCD:SERVER:1234567:123456:1:100:16:Test User");
QCOMPARE(fsdMessage.getRawMessage(), "FSD Sent=>#APABCD:SERVER:1234567:123456:1:101:16:Test User");
}
void CTestFSDClient::testSendAtcLogin()
@@ -393,7 +393,7 @@ namespace BlackFsdTest
QList<QVariant> arguments = spy.takeFirst();
QCOMPARE(arguments.size(), 1);
CRawFsdMessage fsdMessage = arguments.at(0).value<CRawFsdMessage>();
QCOMPARE(fsdMessage.getRawMessage(), "FSD Sent=>#AAABCD:SERVER:Test User:1234567:123456:5:100");
QCOMPARE(fsdMessage.getRawMessage(), "FSD Sent=>#AAABCD:SERVER:Test User:1234567:123456:5:101");
}
void CTestFSDClient::testSendDeletePilot()