mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-16 11:52:04 +02:00
correct PingType_t pack and PacketList readData
This commit is contained in:
parent
61960c80c8
commit
402f7dc075
2 changed files with 2 additions and 2 deletions
|
@ -575,7 +575,7 @@ std::unique_ptr<NLPacket> constructICEPingReplyPacket(const QByteArray& pingPack
|
|||
|
||||
// pack the ICE ID and then the ping type
|
||||
icePingReplyPacket->write(iceID.toRfc4122());
|
||||
icePingReplyPacket->write(&pingType, sizeof(pingType));
|
||||
icePingReplyPacket->write(reinterpret_cast<char *>(&pingType), sizeof(pingType));
|
||||
|
||||
return icePingReplyPacket;
|
||||
}
|
||||
|
|
|
@ -34,7 +34,7 @@ public:
|
|||
void setExtendedHeader(const QByteArray& extendedHeader) { _extendedHeader = extendedHeader; }
|
||||
protected:
|
||||
qint64 writeData(const char* data, qint64 maxSize);
|
||||
qint64 readData(const char* data, qint64 maxSize) { return 0; };
|
||||
qint64 readData(char* data, qint64 maxSize) { return 0; }
|
||||
private:
|
||||
std::unique_ptr<NLPacket> createPacketWithExtendedHeader();
|
||||
|
||||
|
|
Loading…
Reference in a new issue