2024-09-05 16:36:20 +08:00
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <hv/hloop.h>
|
|
|
|
|
|
|
|
|
|
class EventHandler
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
EventHandler();
|
|
|
|
|
virtual ~EventHandler();
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
static void onRecvHandler(hio_t* io, void* buf, int readbytes);
|
2024-09-10 16:12:38 +08:00
|
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
//<2F><><EFBFBD><EFBFBD><EFBFBD>ɼ<EFBFBD><C9BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD><CFB4><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݣ<EFBFBD><DDA3><EFBFBD>JSON<4F><4E><EFBFBD><EFBFBD><EFBFBD>ϱ<EFBFBD>
|
|
|
|
|
static void handleGatherData(hio_t* io, void* buf, int readbytes);
|
2024-11-15 18:22:43 +08:00
|
|
|
|
static int handleConfigureData(hio_t* io, void* buf, int readbytes);
|
2024-09-05 16:36:20 +08:00
|
|
|
|
};
|
|
|
|
|
|