correct PingType_t pack and PacketList readData

This commit is contained in:
Stephen Birarda 2015-07-07 17:56:05 -07:00
parent 61960c80c8
commit 402f7dc075
2 changed files with 2 additions and 2 deletions

View file

@ -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;
}

View file

@ -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();