#pragma once #include 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); static int handleConfigureData(hio_t* io, void* buf, int readbytes); };