19 lines
309 B
C++
19 lines
309 B
C++
#pragma once
|
||
|
||
#include <hv/hloop.h>
|
||
|
||
class EventHandler
|
||
{
|
||
public:
|
||
EventHandler();
|
||
virtual ~EventHandler();
|
||
|
||
public:
|
||
static void onRecvHandler(hio_t* io, void* buf, int readbytes);
|
||
|
||
protected:
|
||
//处理采集程序上传的数据,以JSON数据上报
|
||
static void handleGatherData(hio_t* io, void* buf, int readbytes);
|
||
};
|
||
|