初始化CRICS

This commit is contained in:
2025-12-11 09:17:16 +08:00
commit 83247ec0a2
2735 changed files with 787765 additions and 0 deletions

View File

@@ -0,0 +1,43 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
namespace RCUHost.Protocols
{
/// <summary>
/// 搜索主机 Packet 服务器 -> RCU
/// </summary>
[StructLayout(LayoutKind.Sequential, Pack = 1)]
public struct SearchHostPacket
{
/// <summary>
/// 用户码
/// 用于多用户搜索时区别搜索指令是由哪个用户发出的
/// </summary>
public int UserCode;
/// <summary>
/// RCU是否保存服务器IP和端口0/不保存1/保存
/// </summary>
public byte IsSave;
/// <summary>
/// 服务器IP
/// </summary>
[MarshalAsAttribute(UnmanagedType.ByValArray, SizeConst = 4)]
public byte[] IP;
/// <summary>
/// 服务器端口号
/// </summary>
public ushort Port;
/// <summary>
/// CRC16
/// </summary>
public ushort CRC;
}
}