Added some debug info

This commit is contained in:
WolverinDEV 2020-04-02 19:18:57 +02:00
parent c879f3b776
commit 0bfcb27002
2 changed files with 2 additions and 5 deletions

View File

@ -37,8 +37,4 @@ uint16_t generation_estimator::visit_packet(uint16_t packet_id) {
this->last_packet_id = packet_id;
return this->last_generation;
}
}
uint16_t generation_estimator::generation() const {
return this->last_generation;
}

View File

@ -9,7 +9,8 @@ namespace ts::protocol {
void reset();
[[nodiscard]] uint16_t visit_packet(uint16_t /* packet id */);
[[nodiscard]] uint16_t generation() const;
[[nodiscard]] inline uint16_t generation() const { return this->last_generation; }
[[nodiscard]] inline uint16_t current_packet_id() const { return this->last_packet_id; }
void set_last_state(uint16_t last_packet, uint16_t generation) {
this->last_packet_id = last_packet;