初始化CRICS
This commit is contained in:
26
RCUHost/Protocols/HeartPacket.cs
Normal file
26
RCUHost/Protocols/HeartPacket.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Text;
|
||||
|
||||
namespace RCUHost.Protocols
|
||||
{
|
||||
/// <summary>
|
||||
/// 心跳 Packet RCU -> 服务器
|
||||
/// </summary>
|
||||
[StructLayoutAttribute(LayoutKind.Sequential, CharSet = CharSet.Ansi, Pack = 1)]
|
||||
public struct HeartPacket
|
||||
{
|
||||
/// <summary>
|
||||
/// MAC地址
|
||||
/// </summary>
|
||||
[MarshalAsAttribute(UnmanagedType.ByValArray, SizeConst = 6)]
|
||||
public byte[] MAC;
|
||||
|
||||
/// <summary>
|
||||
/// CRC16
|
||||
/// </summary>
|
||||
public ushort CRC;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user