Fixed DTSH version binary writing bug
This commit is contained in:
parent
b7dac7a6b1
commit
6d8189f64a
1 changed files with 3 additions and 3 deletions
|
@ -1740,7 +1740,7 @@ namespace DTSC {
|
||||||
dataLen += it->second.getSendLen(skipDynamic);
|
dataLen += it->second.getSendLen(skipDynamic);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (version){dataLen += 17;}
|
if (version){dataLen += 18;}
|
||||||
return dataLen + 8; //add 8 bytes header
|
return dataLen + 8; //add 8 bytes header
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1767,7 +1767,7 @@ namespace DTSC {
|
||||||
writePointer(p, convertLongLong(1), 8);
|
writePointer(p, convertLongLong(1), 8);
|
||||||
}
|
}
|
||||||
if (version) {
|
if (version) {
|
||||||
writePointer(p, "\000\006version\001", 9);
|
writePointer(p, "\000\007version\001", 10);
|
||||||
writePointer(p, convertLongLong(version), 8);
|
writePointer(p, convertLongLong(version), 8);
|
||||||
}
|
}
|
||||||
if (bufferWindow) {
|
if (bufferWindow) {
|
||||||
|
@ -1804,7 +1804,7 @@ namespace DTSC {
|
||||||
conn.SendNow(convertLongLong(1), 8);
|
conn.SendNow(convertLongLong(1), 8);
|
||||||
}
|
}
|
||||||
if (version) {
|
if (version) {
|
||||||
conn.SendNow("\000\006version\001", 9);
|
conn.SendNow("\000\007version\001", 10);
|
||||||
conn.SendNow(convertLongLong(version), 8);
|
conn.SendNow(convertLongLong(version), 8);
|
||||||
}
|
}
|
||||||
if (bufferWindow) {
|
if (bufferWindow) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue