#include "stdafx.h" #include "StatServerDispatch.h" #include #include #include enum StatServerConst { STAT_SERVER_DEFAULT_DISPATCH_NUM = 10 }; CStatServerDispatch::CStatServerDispatch(CSession& Session) : CRylServerDispatch(Session, STAT_SERVER_DEFAULT_DISPATCH_NUM) { DETLOG1(g_Log, "this:0x%p/CStatServerDispatch Created", this); } CStatServerDispatch::~CStatServerDispatch() { DETLOG1(g_Log, "this:0x%p/CStatServerDispatch Destroyed", this); } CSingleDispatch& CStatServerDispatch::GetDispatch() { static CSingleDispatch statServerDispatch; return statServerDispatch; } void CStatServerDispatch::Connected() { GetDispatch().SetDispatch(this); } void CStatServerDispatch::Disconnected() { GetDispatch().RemoveDispatch(this); } bool CStatServerDispatch::DispatchPacket(PktBase* lpPktBase) { return true; }