Files
2025-12-11 09:17:16 +08:00

44 lines
877 B
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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;
}
}