Adding enhancement #76 (server password). The server password is checked during init, in addition to possible player auth. It can be set as option "ServerPassword" in config.xml, on client and server.

This commit is contained in:
lotodore
2011-10-20 21:19:58 +00:00
parent 2f588ffed7
commit ddf2ca784b
7 changed files with 40 additions and 3 deletions
+7
View File
@@ -55,6 +55,12 @@ public:
void SetServerAddr(const std::string &serverAddr) {
m_serverAddr = serverAddr;
}
const std::string &GetServerPassword() const {
return m_serverPassword;
}
void SetServerPassword(const std::string &serverPassword) {
m_serverPassword = serverPassword;
}
const std::string &GetServerListUrl() const {
return m_serverListUrl;
}
@@ -134,6 +140,7 @@ private:
bool m_sctp;
int m_addrFamily;
std::string m_serverAddr;
std::string m_serverPassword;
std::string m_serverListUrl;
bool m_useServerList;
unsigned m_serverPort;