⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 msgmessageboard.h

📁 魔域源代码需要的可以学习一下真么这么麻烦啊
💻 H
字号:
// MsgMessageBoard.h: interface for the CMsgMessageBoard class.
//
//////////////////////////////////////////////////////////////////////

#ifndef MESSAGEBOARD_H
#define MESSAGEBOARD_H

#include "NetMsg.h"
#include "NetStringPacker.h"
#include "MessageBoard.h"

WORLDKERNEL_BEGIN

enum{
		MESSAGEBOARD_DEL				= 1,			// to server					// no return
		MESSAGEBOARD_GETLIST			= 2,			// to server: index(first index)
		MESSAGEBOARD_LIST				= 3,			// to client: index(first index), name, words, time...
		MESSAGEBOARD_GETWORDS			= 4,			// to server: index(for get)	// return by MsgTalk
};

class CMsgMessageBoard : public CNetMsg  
{
public:
	CMsgMessageBoard();
	virtual ~CMsgMessageBoard();

	BOOL	Create	(int nAction, int nChannel, int nIndex, CMessageBoard* pObj=NULL);

public:
	BOOL			Create		(char* pbufMsg, DWORD dwMsgSize);
	void			Process		(void *pInfo);

private:
	typedef struct {
		MSGHEAD_DEFINE

		USHORT	usIndex;
		USHORT	usChannel;
		UCHAR	ucAction;
		char	szBuf[1];
	}MSG_Info;

	MSG_Info*	m_pInfo;

private:
	CNetStringPacker	m_StrPacker;

};
WORLDKERNEL_END

#endif 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -