From f5aaf1b1cc94e28d4fa423a3d0b8ca286cf7f87d Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 21 May 2018 08:27:47 +0200 Subject: Implement online/offline users (pinging) --- include/User.hpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/User.hpp') diff --git a/include/User.hpp b/include/User.hpp index 85418dc..ac08e36 100644 --- a/include/User.hpp +++ b/include/User.hpp @@ -1,5 +1,6 @@ #pragma once +#include "types.hpp" #include #include @@ -37,6 +38,8 @@ namespace dchat bool isOnlineUser() const override { return true; } std::string name; + u32 pingCounter; + u64 pingTimestamp; }; class OnlineRemoteUser : public OnlineUser -- cgit v1.2.3