1
This commit is contained in:
parent
cfdc4f4f63
commit
3901bc6433
@ -47,6 +47,11 @@ IMConn* IMConnMgr::RecreateIMConn(const std::string& host, int port)
|
||||
return conn;
|
||||
}
|
||||
|
||||
void IMConnMgr::_SS_Pong(f8::MsgHdr& hdr, const ss::SS_Pong& msg)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void IMConnMgr::_SS_MS_IMServerList(f8::MsgHdr& hdr, const ss::SS_MS_IMServerList& msg)
|
||||
{
|
||||
|
||||
|
@ -3,6 +3,7 @@
|
||||
namespace ss
|
||||
{
|
||||
class MFIMMsgConext;
|
||||
class SS_Pong;
|
||||
class SS_MS_LoadGroup;
|
||||
class SS_MS_IMServerList;
|
||||
}
|
||||
@ -22,9 +23,11 @@ class IMConnMgr : public a8::Singleton<IMConnMgr>
|
||||
void Init();
|
||||
void UnInit();
|
||||
|
||||
void _SS_MS_IMServerList(f8::MsgHdr& hdr, const ss::SS_MS_IMServerList& msg);
|
||||
void _SS_Pong(f8::MsgHdr& hdr, const ss::SS_Pong& msg);
|
||||
|
||||
IMConn* GetConnByKey(const std::string& key);
|
||||
IMConn* RecreateIMConn(const std::string& host, int port);
|
||||
void _SS_MS_IMServerList(f8::MsgHdr& hdr, const ss::SS_MS_IMServerList& msg);
|
||||
void TraverseIMConn(std::function<bool (IMConn*)> func);
|
||||
|
||||
private:
|
||||
|
@ -41,6 +41,7 @@ void HandlerMgr::RegisterNetMsgHandlers()
|
||||
RegisterNetMsgHandler(&mscmsghandler, &GroupMgr::_SS_MS_LoadGroup);
|
||||
RegisterNetMsgHandler(&mscmsghandler, &GroupMgr::_SS_MS_ForwardGroupCMMsg);
|
||||
|
||||
RegisterNetMsgHandler(&mscmsghandler, &IMConnMgr::_SS_Pong);
|
||||
RegisterNetMsgHandler(&mscmsghandler, &IMConnMgr::_SS_MS_IMServerList);
|
||||
|
||||
RegisterNetMsgHandler(&imcmsghandler, &PlayerMgr::_SS_IM_SendChatMsg);
|
||||
|
@ -14,7 +14,7 @@ namespace ss
|
||||
class GGListener : public a8::Singleton<GGListener>
|
||||
{
|
||||
public:
|
||||
enum { HID = HID_SvrMgr };
|
||||
enum { HID = HID_GGListener };
|
||||
|
||||
private:
|
||||
GGListener() {};
|
||||
|
@ -20,6 +20,7 @@ enum NetHandler_e
|
||||
HID_SvrMgr,
|
||||
HID_IMSMgr,
|
||||
HID_CacheMgr,
|
||||
HID_GGListener
|
||||
};
|
||||
|
||||
const char* const PROJ_NAME_FMT = "friend_masterserver";
|
||||
|
Loading…
x
Reference in New Issue
Block a user