diff options
author | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2021-08-14 18:30:36 +0100 |
---|---|---|
committer | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2021-08-14 18:30:36 +0100 |
commit | f63b853468225e2bc675cde9484a27acfe8548b5 (patch) | |
tree | 931a0fc039d40a81897f3b2f1ee81473ff32a1a4 /NorthstarDedicatedTest/serverauthentication.h | |
parent | f425377e5b15dc97ce8caa484b3e282ec5df529c (diff) | |
download | NorthstarLauncher-f63b853468225e2bc675cde9484a27acfe8548b5.tar.gz NorthstarLauncher-f63b853468225e2bc675cde9484a27acfe8548b5.zip |
add authentication with local server
Diffstat (limited to 'NorthstarDedicatedTest/serverauthentication.h')
-rw-r--r-- | NorthstarDedicatedTest/serverauthentication.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/NorthstarDedicatedTest/serverauthentication.h b/NorthstarDedicatedTest/serverauthentication.h index b26ce2b2..38008e9b 100644 --- a/NorthstarDedicatedTest/serverauthentication.h +++ b/NorthstarDedicatedTest/serverauthentication.h @@ -13,6 +13,15 @@ struct AuthData size_t pdataSize; }; +struct AdditionalPlayerData +{ + bool usingLocalPdata; + size_t pdataSize; + + double lastClientCommandQuotaStart = 0; + int numClientCommandsInQuota = 0; +}; + class ServerAuthenticationManager { private: @@ -21,6 +30,7 @@ private: public: std::mutex m_authDataMutex; std::unordered_map<std::string, AuthData> m_authData; + std::unordered_map<void*, AdditionalPlayerData> m_additionalPlayerData; bool m_runningPlayerAuthThread = false; public: |