2024-03-15 12:31:34 +08:00
|
|
|
|
#pragma once
|
|
|
|
|
#include <string>
|
|
|
|
|
#include "StreamServer.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class DataHandle{
|
|
|
|
|
typedef void (*DataCallBack)(void* pthis, const ReadData& msg);
|
|
|
|
|
public:
|
|
|
|
|
DataHandle();
|
|
|
|
|
~DataHandle();
|
|
|
|
|
|
|
|
|
|
void Init();
|
|
|
|
|
|
|
|
|
|
static void DataCallBackProc(void* pthis, const ReadData& msg);
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
DataCallBack m_dataCallBack;
|
|
|
|
|
public:
|
|
|
|
|
StreamServer* m_streamServer;
|
2024-03-19 17:45:12 +08:00
|
|
|
|
|
2024-03-15 12:31:34 +08:00
|
|
|
|
};
|