using System; using System.Collections.Generic; using System.Linq; using System.Runtime.InteropServices; using System.Text; namespace RCUHost.Protocols { /// /// 心跳 Packet RCU -> 服务器 /// [StructLayoutAttribute(LayoutKind.Sequential, CharSet = CharSet.Ansi, Pack = 1)] public struct HeartPacket { /// /// MAC地址 /// [MarshalAsAttribute(UnmanagedType.ByValArray, SizeConst = 6)] public byte[] MAC; /// /// CRC16 /// public ushort CRC; } }