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:
@@ -0,0 +1,36 @@
|
||||
#ifndef _GAMA_CLIENT_NULL_SESSION_H_
|
||||
#define _GAMA_CLIENT_NULL_SESSION_H_
|
||||
|
||||
#include "Session.h"
|
||||
#include "NullHandler.h"
|
||||
#include <cstdio>
|
||||
|
||||
namespace ClientNet
|
||||
{
|
||||
class NullSession : public CSession
|
||||
{
|
||||
public:
|
||||
|
||||
NullSession(CSessionMgr& SessionMgr)
|
||||
: CSession(SessionMgr, &NullHandler::GetInstance())
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
virtual ~NullSession() { m_lpEventHandler = NULL; }
|
||||
virtual CNetworkMsgBlock* GetNetworkMsgBlock(unsigned long dwSize, INET_Addr& addr, unsigned char cCmd)
|
||||
{
|
||||
fprintf(stderr, "SessionName:%s\tCmd:0x%02x\tReqSize:%6u\tNullSession cannot create message block!.\n",
|
||||
GetSessionName(), cCmd, dwSize);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
virtual int Open(INET_Addr& addr) { return 0; }
|
||||
virtual int Open(INET_Addr& addr, SOCKET hSocket) { return 0; } // Passive Socket
|
||||
virtual int Recv() { return 0; }
|
||||
virtual int Send(unsigned long dwMaxSendCount) { return 0; }
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user