Add frame number to udp packets

This commit is contained in:
Lauri Kasanen
2022-10-14 11:34:52 +03:00
parent 7350b12b3d
commit 7399e5dc62
3 changed files with 18 additions and 7 deletions

View File

@@ -40,6 +40,10 @@ namespace network {
client = cli;
}
void setFrameNumber(const unsigned in) {
frame = in;
}
bool isFailed() const;
void clearFailed();
private:
@@ -48,6 +52,7 @@ namespace network {
size_t total_len;
uint32_t id;
bool failed;
uint32_t frame;
};
}