Restructure repository to include all source folders
Move git root from Client/ to src/ to track all source code: - Client: Game client source (moved to Client/Client/) - Server: Game server source - GameTools: Development tools - CryptoSource: Encryption utilities - database: Database scripts - Script: Game scripts - rylCoder_16.02.2008_src: Legacy coder tools - GMFont, Game: Additional resources 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
67
Server/RylServerProject/RylAuthServer/AuthorizeThread.h
Normal file
67
Server/RylServerProject/RylAuthServer/AuthorizeThread.h
Normal file
@@ -0,0 +1,67 @@
|
||||
#ifndef _CAUTHORIZE_THREAD_H_
|
||||
#define _CAUTHORIZE_THREAD_H_
|
||||
|
||||
#include <Thread/Thread.h>
|
||||
//#include <map>
|
||||
|
||||
// <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>.
|
||||
class CDBComponent;
|
||||
class CAuthInfo;
|
||||
class CAuthorizeThread;
|
||||
|
||||
//#include "NetString.h"
|
||||
|
||||
class CAuthorizeThread : public CThread
|
||||
// ,public CNetString::IEventListener
|
||||
{
|
||||
public:
|
||||
// Desc : Ÿ<>Կ<EFBFBD> <20><><EFBFBD><EFBFBD> <20>˸<EFBFBD><CBB8><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> (<28>Ѱ<EFBFBD><D1B0><EFBFBD>/<2F>븸)
|
||||
static CAuthorizeThread* Create();
|
||||
|
||||
// Desc : Ÿ<>Կ<EFBFBD> <20><><EFBFBD><EFBFBD> <20>˸<EFBFBD><CBB8><EFBFBD> <20≯<EFBFBD>/<2F>н<EFBFBD><D0BD><EFBFBD><EFBFBD><EFBFBD> <20>˻<EFBFBD> (<28>Ѱ<EFBFBD><D1B0><EFBFBD>/<2F>븸)
|
||||
static bool CheckUserIDAndPass(const char* szUserAccount_In, const char* szUserPW_In);
|
||||
|
||||
virtual ~CAuthorizeThread();
|
||||
|
||||
bool Initialize(); // Desc : DBObject<63><74><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ѵ<EFBFBD>.
|
||||
void Destroy(); // Desc : DBObject<63><74><EFBFBD><EFBFBD> <20>Ҹ<EFBFBD><D2B8><EFBFBD>Ų<EFBFBD><C5B2>.
|
||||
|
||||
// void EventPacket(int iIndex, char* pPacket);
|
||||
|
||||
bool ConnectAll();
|
||||
|
||||
private:
|
||||
unsigned int Run();
|
||||
virtual BOOL End();
|
||||
|
||||
protected:
|
||||
|
||||
virtual void Authorize(CAuthInfo* lpAuthInfo) = 0; // Desc : <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>.
|
||||
|
||||
CAuthorizeThread(); // Desc : Create <20>Լ<EFBFBD><D4BC><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ؼ<EFBFBD><D8BC><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20>ְ<EFBFBD> <20><>.
|
||||
|
||||
CDBComponent* m_lpComponent;
|
||||
CDBComponent* m_lpAdminToolComponent;
|
||||
|
||||
BOOL m_bConnectAll;
|
||||
|
||||
// NetString<6E><67> <20><><EFBFBD><EFBFBD><EFBFBD>Ѵ<EFBFBD>.
|
||||
// CNetString* m_lpLogin;
|
||||
// CNetString* m_lpLogout;
|
||||
|
||||
// std::map<std::string, AUTHINFO> m_AuthMap;
|
||||
|
||||
private:
|
||||
unsigned long m_AuthCount;
|
||||
|
||||
public:
|
||||
|
||||
unsigned long MakeSessionID(unsigned long SessionID)
|
||||
{
|
||||
unsigned long dwSessionID = (SessionID ^ ++m_AuthCount);
|
||||
return 0 == dwSessionID ? dwSessionID + rand() : dwSessionID;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user