TongConnect.h
上传用户:dzyhzl
上传日期:2019-04-29
资源大小:56270k
文件大小:1k
- // TongConnect.h: interface for the CTongConnect class.
- //
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_TONGCONNECT_H__A8D8F663_D02F_4F00_BD05_033EB4081E3E__INCLUDED_)
- #define AFX_TONGCONNECT_H__A8D8F663_D02F_4F00_BD05_033EB4081E3E__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #include "NetConnect.h"
- #include <map>
- class CTongConnect : public CNetConnect
- {
- public:
- CTongConnect(class CTongServer* pHostServer, unsigned long id);
- virtual ~CTongConnect();
- protected:
- virtual void OnClientConnectCreate();
- virtual void OnClientConnectClose();
- virtual void RecvPackage(const void* pData, size_t size);
- private:
- void Proc0_Tong(const void* pData, size_t size);
-
- void Proc0_Friend(const void* pData, size_t size);
- void Proc1_Friend_AskAddFriend(const void* pData, size_t size);
- void Proc1_Friend_RepAddFriend(const void* pData, size_t size);
- void Proc1_Friend_GroupFriend(const void* pData, size_t size);
- void Proc1_Friend_EraseFriend(const void* pData, size_t size);
- void Proc1_Friend_AskSyncFriendList(const void* pData, size_t size);
- void Proc1_Friend_Associate(const void* pData, size_t size);
- void Proc1_Friend_AssociateBevy(const void* pData, size_t size);
- private:
- BOOL PassToSomeone(DWORD ip, unsigned long id, DWORD nameid, const void* pData, size_t size);
- };
- #endif // !defined(AFX_TONGCONNECT_H__A8D8F663_D02F_4F00_BD05_033EB4081E3E__INCLUDED_)