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:
58
GameTools/GLOBALSCRIPT/Network/ClientSocket/LoginSocket.h
Normal file
58
GameTools/GLOBALSCRIPT/Network/ClientSocket/LoginSocket.h
Normal file
@@ -0,0 +1,58 @@
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// LoginSocket Class
|
||||
//
|
||||
// Last Update : 2002. 8.28
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||
#ifndef _LoginSocket
|
||||
#define _LoginSocket
|
||||
|
||||
// <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
struct SERVER_LIST;
|
||||
|
||||
#include "NetBase.h"
|
||||
|
||||
const unsigned long WM_LOGIN_SOCKET = RegisterWindowMessage("WM_LOGIN_SOCKET");
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Ŭ<><C5AC><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||
class LoginSocket : public NetBase
|
||||
{
|
||||
private:
|
||||
HWND m_hMainWnd;
|
||||
IN_ADDR m_RegAddress;
|
||||
int m_ConnectServer;
|
||||
|
||||
public:
|
||||
typedef enum AuthFlag { AuthFlag_RegDB = 0x8000, AuthFlag_Email = 0x4000 };
|
||||
typedef enum CO_SRV { CO_LOGIN = 0, CO_AUTH = 1 };
|
||||
|
||||
LoginSocket(HWND hWnd_In);
|
||||
virtual ~LoginSocket(void);
|
||||
|
||||
inline IN_ADDR GetRegAddress() { return m_RegAddress; }
|
||||
inline char* GetRegString() { return inet_ntoa(m_RegAddress); }
|
||||
inline int GetConnectServer() { return m_ConnectServer; }
|
||||
|
||||
bool ConnectToLoginServer(char* Address_In);
|
||||
bool ConnectToAuthServer(void);
|
||||
bool Disconnect(void);
|
||||
|
||||
bool SendSysPing(void);
|
||||
|
||||
bool AuthAccount(char* UserID_In, char* UserPW_In, DWORD ClientVer_In, unsigned short CnFlag_In, unsigned short Flag_In = 0);
|
||||
bool ServerList(DWORD ClientVersion_In);
|
||||
bool ServerGroup(unsigned char Group_In);
|
||||
bool PatchAddress(DWORD ServerID_In);
|
||||
|
||||
DWORD HandleAuthAccount(char *pBuffer_In, DWORD *SessionID_Out, DWORD *UserID_Out);
|
||||
DWORD HandleServerList(char *pBuffer_In, DWORD *UserID_Out, SERVER_LIST* lpServerList_Out);
|
||||
DWORD HandleServerGroup(char *pBuffer_In, DWORD *ServerID_Out);
|
||||
DWORD HandlePatchAddress(char *pBuffer_In, DWORD *ClientVer_Out, char *PatchAddress_Out);
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user