61 lines
1.3 KiB
C#
61 lines
1.3 KiB
C#
|
|
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 SearchHostPacketReply
|
|||
|
|
{
|
|||
|
|
/// <summary>
|
|||
|
|
/// 用户码
|
|||
|
|
/// </summary>
|
|||
|
|
public uint UserCode;
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 子网掩码
|
|||
|
|
/// </summary>
|
|||
|
|
[MarshalAsAttribute(UnmanagedType.ByValArray, SizeConst = 4)]
|
|||
|
|
public byte[] SubnetMask;
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 网关
|
|||
|
|
/// </summary>
|
|||
|
|
[MarshalAsAttribute(UnmanagedType.ByValArray, SizeConst = 4)]
|
|||
|
|
public byte[] Gateway;
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 端口
|
|||
|
|
/// </summary>
|
|||
|
|
public UInt16 Port;
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// MAC地址
|
|||
|
|
/// </summary>
|
|||
|
|
[MarshalAsAttribute(UnmanagedType.ByValArray, SizeConst = 6)]
|
|||
|
|
public byte[] MAC;
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 版本号
|
|||
|
|
/// </summary>
|
|||
|
|
[MarshalAsAttribute(UnmanagedType.ByValTStr, SizeConst = 20)]
|
|||
|
|
public string Version;
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 配置版本号
|
|||
|
|
/// </summary>
|
|||
|
|
[MarshalAsAttribute(UnmanagedType.ByValArray, SizeConst = 3)]
|
|||
|
|
public byte[] ConfigVersion;
|
|||
|
|
|
|||
|
|
///// <summary>
|
|||
|
|
///// CRC16
|
|||
|
|
///// </summary>
|
|||
|
|
//public ushort CRC;
|
|||
|
|
}
|
|||
|
|
}
|