fully implement KeepAlive behavior
This commit is contained in:
17
include/server/components/KeepAliveSession.h
Normal file
17
include/server/components/KeepAliveSession.h
Normal file
@@ -0,0 +1,17 @@
|
||||
#pragma once
|
||||
|
||||
#include <Nazara/Core/Time.hpp>
|
||||
#include <cstdint>
|
||||
|
||||
namespace blitz {
|
||||
namespace server {
|
||||
|
||||
struct KeepAliveSessionComponent {
|
||||
std::uint16_t m_PeerId;
|
||||
std::uint64_t m_LastKeepAliveId;
|
||||
Nz::Time m_LastTime;
|
||||
bool m_RecievedResponse = false;
|
||||
};
|
||||
|
||||
} // namespace server
|
||||
} // namespace blitz
|
||||
Reference in New Issue
Block a user