emsApplication/applications/ems_datahubs/frame_define.h

23 lines
411 B
C
Raw Normal View History

2024-09-03 16:27:43 +08:00
#pragma once
#pragma pack(1)
#include "kdefine.h"
NAMESPACE_BEGIN(HJ)
typedef enum tagFrameType : char
{
Frame_Request = 0, //<2F><><EFBFBD><EFBFBD>֡
Frame_Response = 1, //<2F><><EFBFBD><EFBFBD>֡
}FrameType;
typedef struct tagFrame
{
FrameType frame_type; //֡<><D6A1><EFBFBD><EFBFBD>
unsigned int frame_len; //֡<><D6A1><EFBFBD>ݳ<EFBFBD><DDB3><EFBFBD>
char frame_content[1]; //֡<><D6A1><EFBFBD><EFBFBD><EFBFBD>ݣ<EFBFBD>ʵ<EFBFBD><CAB5>ӦΪjson<6F>ַ<EFBFBD><D6B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>json<6F><6E><EFBFBD><EFBFBD><EFBFBD>Խ<EFBFBD><D4BD><EFBFBD>
}MessageFrame;
NAMESPACE_END(HJ)
#pragma pack()