Mapper.h
资源名称:smpplib.zip [点击查看]
上传用户:hkcoast
上传日期:2007-01-12
资源大小:979k
文件大小:1k
源码类别:
手机短信编程
开发平台:
Visual C++
- #ifndef __IO_MAPPER__
- #define __IO_MAPPER__
- #define net_msg
- class __declspec(novtable) CIOMessageMap
- {
- public:
- virtual bool ProcessIOMessage(IOType clientIO, ClientContext* pContext, DWORD dwSize) = 0;
- };
- #define BEGIN_IO_MSG_MAP()
- public:
- bool ProcessIOMessage(IOType clientIO, ClientContext* pContext, DWORD dwSize = 0)
- {
- bool bRet = false;
- #define IO_MESSAGE_HANDLER(msg, func)
- if (msg == clientIO)
- bRet = func(pContext, dwSize);
- #define END_IO_MSG_MAP()
- return bRet;
- }
- #endif