mirror of
https://github.com/overte-org/overte.git
synced 2025-04-25 02:25:48 +02:00
indicate number of values being put to data-server
This commit is contained in:
parent
d37ae7da1b
commit
7851251e5d
1 changed files with 3 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue