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:
79
Server/NFAuthTool/NFAuthClient/NetAuth.h
Normal file
79
Server/NFAuthTool/NFAuthClient/NetAuth.h
Normal file
@@ -0,0 +1,79 @@
|
||||
#pragma once
|
||||
|
||||
#include "NaveNet/NFNet.h"
|
||||
#include "NaveNet/NFNetClientS.h"
|
||||
|
||||
#include "Packet.h"
|
||||
|
||||
class CNetAuth : public NaveNet::NFNetClientS
|
||||
{
|
||||
public:
|
||||
CNetAuth(void);
|
||||
~CNetAuth(void);
|
||||
|
||||
public:
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
// Socket -> Client로 패킷을 전달하기 위해 존재하는 Listener이다.
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
class IEventListener
|
||||
{
|
||||
public:
|
||||
virtual ~IEventListener() {}
|
||||
virtual void EventIRC(CHAR* strCmd, CHAR* strMsg)=0;
|
||||
virtual void EventCMD(DWORD dwCmd, DWORD dwValue)=0;
|
||||
virtual void EventIPLIST(CHAR Type, CHAR Page, SHORT Count, char* lpIPList_Out)=0;
|
||||
virtual void EventConnect(BOOL bConnect)=0;
|
||||
virtual void EventSocketClose()=0;
|
||||
};
|
||||
|
||||
void SetEventListener(IEventListener* event)
|
||||
{
|
||||
m_event = event;
|
||||
}
|
||||
|
||||
public:
|
||||
virtual void Update();
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
// ToServer에 정의된 패킷사용
|
||||
// 전달받은 패킷이 처리될 패킷함수 형식은 Recv_패킷이름(CHAR* Packet, int Len) 이된다.
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
void Send_IRC(const char* strCommand, const char* strMsg);
|
||||
void Send_AUTH(DWORD dwType, const char* strKey);
|
||||
void Send_CMD(DWORD dwCmd, DWORD dwValue);
|
||||
|
||||
void Disconnect();
|
||||
|
||||
private:
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
// CNetAuth에서 사용되는 변수모음
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
// Nave::Sync::CSync m_Cs;
|
||||
|
||||
// Send를 하기위해 패킷을 만들때 사용된다.
|
||||
NaveNet::NFPacket m_SendPacket;
|
||||
|
||||
IEventListener* m_event;
|
||||
|
||||
private:
|
||||
void (CNetAuth::*OnMsgMap[MaxPacket])(CHAR* Packet, int Len);
|
||||
|
||||
// 소켓 부분에서 떨어지는 이벤트를 처리할때
|
||||
void OnSocketEvent(DWORD dID, DWORD dEvent);
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
// FromServer에 정의된 패킷사용 (클라이언트는 상관없다.)
|
||||
// 전달받은 패킷이 처리될 패킷함수 형식은 Recv_패킷이름(CHAR* Packet, int Len) 이된다.
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
// IRC Packet 처리함수
|
||||
void Parsed_CMD(CHAR* Packet, int Len);
|
||||
void Parsed_IPLIST(CHAR* Packet, int Len);
|
||||
|
||||
void Parsed_Dummy(CHAR* Packet, int Len);
|
||||
void Parsed_IRC(CHAR* Packet, int Len);
|
||||
|
||||
void ProcessPacket(NaveNet::NFPacket* pPacket, int PacketLen);
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user