MGameClient.h
00001 #ifndef MGAMECLIENT_H 00002 #define MGAMECLIENT_H 00003 00004 #include "MCommandCommunicator.h" 00005 #include "MClient.h" 00006 00008 class MGameClient : public MClient 00009 { 00010 private: 00011 protected: 00012 // socket event 00013 virtual bool OnSockConnect(SOCKET sock); 00014 virtual bool OnSockDisconnect(SOCKET sock); 00015 virtual bool OnSockRecv(SOCKET sock, char* pPacket, DWORD dwSize); 00016 virtual void OnSockError(SOCKET sock, SOCKET_ERROR_EVENT ErrorEvent, int &ErrorCode); 00017 00018 virtual int OnConnected(MUID* pTargetUID, MUID* pAllocUID, MCommObject* pCommObj); 00019 virtual void OnRegisterCommand(MCommandManager* pCommandManager); 00020 virtual bool OnCommand(MCommand* pCommand); 00021 00022 void OutputLocalInfo(void); 00023 00024 public: 00025 MGameClient(); 00026 virtual ~MGameClient(); 00027 00028 }; 00029 00030 00031 00032 #endif
MAIET entertainment