typedef struct PlatFormFrame
{
tFrameType FrameType;
}tPlatFormFrame;
typedef struct
{
tRegister pRegister ;
}tFrameType;
typedef struct Register
{
struct RegisterRequest
{
short UnitLength;
byte UnitType; // 0x01 is for RegisterRequest
short LocalApplyPort;
long double LocalApplyID;
}tRegisterRequest;
struct RegisterReply
{
short UnitLength;
byte UnitType; // 0x02 is for RegisterReply
byte Return; // return 0 if it is successful, return other number if not successful
}tRegisterReply;
}tRegister;
这样写有问题吗?被老板骂了个狗血临头