History

indicate number of values being put to data-server

Stephen Birarda committed 13 years ago

Commit 78512511 parent d37ae7d1 file · +3 −0Browse files

Showing the changes to interface/src/DataServerClient.cpp (1 of 1 file). Show all

Unified · Split

interface/src/DataServerClient.cpp+3−0
@@ -39,6 +39,9 @@ void DataServerClient::putValueForKey(const QString& key, const char* value) { · 38 unmodified lines
3939 numPacketBytes += clientString.toLocal8Bit().size();
4040 putPacket[numPacketBytes++] = '\0';
4141
42+ // pack a 1 to designate that we are putting a single value
43+ putPacket[numPacketBytes++] = 1;
44+
4245 // pack the key, null terminated
4346 strcpy((char*) putPacket + numPacketBytes, key.toLocal8Bit().constData());
4447 numPacketBytes += key.size();