- add hash function

- add password config
- add debug messages for password stages
- add pass boolean for heartbeat
- adjust network codes
This commit is contained in:
Anonymous275
2022-12-21 22:26:45 +00:00
committed by Simon
parent 6a11bcd20b
commit 9f59c27b1f
5 changed files with 37 additions and 2 deletions

View File

@@ -49,6 +49,7 @@ public:
std::string Resource { "Resources" };
std::string MapName { "/levels/gridmap_v2/info.json" };
std::string Key {};
std::string Password{};
std::string SSLKeyPath { "./.ssl/HttpServer/key.pem" };
std::string SSLCertPath { "./.ssl/HttpServer/cert.pem" };
bool HTTPServerEnabled { false };

View File

@@ -38,6 +38,7 @@ private:
std::thread mUDPThread;
std::thread mTCPThread;
static std::string Hash(const std::string& str);
std::vector<uint8_t> UDPRcvFromClient(ip::udp::endpoint& ClientEndpoint);
void HandleDownload(TConnection&& TCPSock);
void OnConnect(const std::weak_ptr<TClient>& c);