History

packet header changes and beginning of conversion to QByteArray

Stephen Birarda committed 12 years ago

Commit 4103cc11 parent fd34d2c121 files · +1326 −1607Browse files

Showing the changes to interface/src/MetavoxelSystem.cpp (1 of 121 files). Show all

Unified · Split

interface/src/MetavoxelSystem.cpp+1−2
@@ -167,8 +167,7 @@ bool MetavoxelSystem::PointVisitor::visit(MetavoxelInfo& info) { · 166 unmodified lines
167167 }
168168
169169 static QByteArray createDatagramHeader(const QUuid& sessionID) {
170− QByteArray header(MAX_PACKET_HEADER_BYTES, 0);
171− populateTypeAndVersion(reinterpret_cast<unsigned char*>(header.data()), PACKET_TYPE_METAVOXEL_DATA);
170+ QByteArray header = byteArrayWithPopluatedHeader(PacketTypeMetavoxelData);
172171 header += sessionID.toRfc4122();
173172 return header;
174173 }