its compiling now

This commit is contained in:
ErikasKontenis
2019-09-29 22:59:23 +03:00
parent ad4cf36193
commit 45c787b241
12 changed files with 127 additions and 62 deletions

View File

@@ -43,7 +43,11 @@ class OutputMessage : public NetworkMessage
add_header(info.length);
}
void addCryptoHeader() {
void addCryptoHeader(bool addChecksum) {
if (addChecksum) {
add_header(adlerChecksum(buffer + outputBufferStart, info.length));
}
writeMessageLength();
}