mirror of
https://github.com/overte-org/overte.git
synced 2025-04-25 17:35:45 +02:00
missed changes in PacketHeaders, comment old header calls
This commit is contained in:
parent
1dfa592a13
commit
5ed332ea2c
2 changed files with 11 additions and 11 deletions
|
@ -118,12 +118,12 @@ public:
|
||||||
|
|
||||||
bool packetVersionAndHashMatch(const QByteArray& packet);
|
bool packetVersionAndHashMatch(const QByteArray& packet);
|
||||||
|
|
||||||
QByteArray byteArrayWithPopulatedHeader(PacketType packetType)
|
// QByteArray byteArrayWithPopulatedHeader(PacketType packetType)
|
||||||
{ return byteArrayWithUUIDPopulatedHeader(packetType, _sessionUUID); }
|
// { return byteArrayWithUUIDPopulatedHeader(packetType, _sessionUUID); }
|
||||||
int populatePacketHeader(QByteArray& packet, PacketType packetType)
|
// int populatePacketHeader(QByteArray& packet, PacketType packetType)
|
||||||
{ return populatePacketHeaderWithUUID(packet, packetType, _sessionUUID); }
|
// { return populatePacketHeaderWithUUID(packet, packetType, _sessionUUID); }
|
||||||
int populatePacketHeader(char* packet, PacketType packetType)
|
// int populatePacketHeader(char* packet, PacketType packetType)
|
||||||
{ return populatePacketHeaderWithUUID(packet, packetType, _sessionUUID); }
|
// { return populatePacketHeaderWithUUID(packet, packetType, _sessionUUID); }
|
||||||
|
|
||||||
qint64 readDatagram(QByteArray& incomingPacket, QHostAddress* address, quint16 * port);
|
qint64 readDatagram(QByteArray& incomingPacket, QHostAddress* address, quint16 * port);
|
||||||
|
|
||||||
|
|
|
@ -126,18 +126,18 @@ int sequenceNumberOffsetForPacketType(PacketType::Value packetType);
|
||||||
QByteArray hashFromPacketHeader(const QByteArray& packet);
|
QByteArray hashFromPacketHeader(const QByteArray& packet);
|
||||||
QByteArray hashForPacketAndConnectionUUID(const QByteArray& packet, const QUuid& connectionUUID);
|
QByteArray hashForPacketAndConnectionUUID(const QByteArray& packet, const QUuid& connectionUUID);
|
||||||
|
|
||||||
// NOTE: The following four methods accept a PacketType which defaults to PacketTypeUnknown.
|
// NOTE: The following four methods accept a PacketType which defaults to PacketType::Unknown.
|
||||||
// If the caller has already looked at the packet type and can provide it then the methods below won't have to look it up.
|
// If the caller has already looked at the packet type and can provide it then the methods below won't have to look it up.
|
||||||
|
|
||||||
PacketSequenceNumber sequenceNumberFromHeader(const QByteArray& packet, PacketType::Value packetType = PacketTypeUnknown);
|
PacketSequenceNumber sequenceNumberFromHeader(const QByteArray& packet, PacketType::Value packetType = PacketType::Unknown);
|
||||||
|
|
||||||
void replaceHashInPacket(QByteArray& packet, const QUuid& connectionUUID, PacketType::Value packetType = PacketTypeUnknown);
|
void replaceHashInPacket(QByteArray& packet, const QUuid& connectionUUID, PacketType::Value packetType = PacketType::Unknown);
|
||||||
|
|
||||||
void replaceSequenceNumberInPacket(QByteArray& packet, PacketSequenceNumber sequenceNumber,
|
void replaceSequenceNumberInPacket(QByteArray& packet, PacketSequenceNumber sequenceNumber,
|
||||||
PacketType::Value packetType = PacketTypeUnknown);
|
PacketType::Value packetType = PacketType::Unknown);
|
||||||
|
|
||||||
void replaceHashAndSequenceNumberInPacket(QByteArray& packet, const QUuid& connectionUUID, PacketSequenceNumber sequenceNumber,
|
void replaceHashAndSequenceNumberInPacket(QByteArray& packet, const QUuid& connectionUUID, PacketSequenceNumber sequenceNumber,
|
||||||
PacketType::Value packetType = PacketTypeUnknown);
|
PacketType::Value packetType = PacketType::Unknown);
|
||||||
|
|
||||||
int arithmeticCodingValueFromBuffer(const char* checkValue);
|
int arithmeticCodingValueFromBuffer(const char* checkValue);
|
||||||
int numBytesArithmeticCodingFromBuffer(const char* checkValue);
|
int numBytesArithmeticCodingFromBuffer(const char* checkValue);
|
||||||
|
|
Loading…
Reference in a new issue