emsApplication/applications/ems_datahubs/frame_define.h

23 lines
411 B
C
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

#pragma once
#pragma pack(1)
#include "kdefine.h"
NAMESPACE_BEGIN(HJ)
typedef enum tagFrameType : char
{
Frame_Request = 0, //请求帧
Frame_Response = 1, //返回帧
}FrameType;
typedef struct tagFrame
{
FrameType frame_type; //帧类型
unsigned int frame_len; //帧数据长度
char frame_content[1]; //帧的内容实际应为json字符串由json内容自解释
}MessageFrame;
NAMESPACE_END(HJ)
#pragma pack()