indicate number of values being put to data-server

This commit is contained in:
Stephen Birarda 2013-10-10 11:51:18 -07:00
parent d37ae7da1b
commit 7851251e5d

View file

@ -39,6 +39,9 @@ void DataServerClient::putValueForKey(const QString& key, const char* value) {
numPacketBytes += clientString.toLocal8Bit().size();
putPacket[numPacketBytes++] = '\0';
// pack a 1 to designate that we are putting a single value
putPacket[numPacketBytes++] = 1;
// pack the key, null terminated
strcpy((char*) putPacket + numPacketBytes, key.toLocal8Bit().constData());
numPacketBytes += key.size();