add line numbers to most replay errors

This commit is contained in:
Martin Michelsen
2022-09-22 22:47:02 -07:00
parent afba535e00
commit 7bcb040e8d
2 changed files with 32 additions and 28 deletions
+3 -2
View File
@@ -43,10 +43,11 @@ private:
std::string data; // Only used for SEND and RECEIVE
std::string mask; // Only used for RECEIVE
bool complete;
size_t line_num;
std::shared_ptr<Event> next_event;
Event(Type type, uint64_t client_id);
Event(Type type, uint64_t client_id, size_t line_num);
};
struct Client {
@@ -79,7 +80,7 @@ private:
size_t bytes_received;
std::shared_ptr<ReplaySession::Event> create_event(
Event::Type type, std::shared_ptr<Client> c);
Event::Type type, std::shared_ptr<Client> c, size_t line_num);
void update_timeout_event();
void apply_default_mask(std::shared_ptr<Event> ev);