/** * @content:CallBackHandleI回调接口定义 * @time:2016-9-7 * @author:Mr_zhu * @version: V1.0 * @describe: * 1#2016-9-7#V1.0#首次生成 */ #ifndef INCLUDE_ICALLBACKHANDLE_H_ #define INCLUDE_ICALLBACKHANDLE_H_ #include "../common/Type.h" interface CallBackHandleI{ /** * 数据接收回调接口 */ virtual HRESULT onRecieveData( PBYTE pbuf, const unsigned int len ) = 0; /** * 获取接收数据 */ virtual HRESULT getRecieveData(PBYTE pbuf, int& len) = 0; /** * 清空数据缓冲区 */ virtual HRESULT resetBuf() = 0; virtual ~CallBackHandleI(){} }; #endif /* INCLUDE_ICALLBACKHANDLE_H_ */