Files
Client/Server/RylServerProject/RylDBAgentServer/Network/Dispatch/ChatDispatch.h
LGram16 dd97ddec92 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>
2025-11-29 20:17:20 +09:00

42 lines
887 B
C++

#ifndef _DBAGENT_SERVER_CHAT_DISPATCH_H_
#define _DBAGENT_SERVER_CHAT_DISPATCH_H_
#include <Network/Dispatch/RylServerDispatch.h>
#include <Network/Dispatch/SingleDispatchStorage.h>
// forward decl.
struct PktSL;
namespace DBAgent
{
class CChatDispatch : public CRylServerDispatch
{
public:
static CSingleDispatch& GetDispatchTable();
enum Const
{
MAX_PACKET_DISPATCH_PER_PULSE = 100,
MAX_STREAM_BUFFER_SIZE = 16000
};
CChatDispatch(CSession& Session);
virtual ~CChatDispatch();
virtual void Connected();
virtual void Disconnected();
virtual bool DispatchPacket(PktBase* lpPktBase);
private:
bool ParseServerLogin(PktSL* lpPktSL);
bool ParseServerLogout(PktBase* lpPktBase);
unsigned long m_dwServerID;
};
}
#endif