初始化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,46 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;
using RCUHost.Protocols;
namespace RCUHost.Implement
{
public class ReceiverContext
{
private byte[] orginData;
private IPEndPoint remoteEndPoint;
private long customer;
/// <summary>
/// 监控ID
/// </summary>
public string MessageID="";
public bool IsMonitor = false;
/// <summary>
///
/// </summary>
/// <param name="orginData"></param>
/// <param name="remoteEndPoint"></param>
/// <param name="customer">自定义序号:用于推送通讯命令</param>
public ReceiverContext(byte[] orginData, IPEndPoint remoteEndPoint, long customer)
{
this.orginData = orginData;
this.remoteEndPoint = remoteEndPoint;
this.customer = customer;
}
public byte[] Data { get { return this.orginData; } }
public IPEndPoint RemoteEndPoint { get { return this.remoteEndPoint; } }
public SystemHeader? SystemHeader { get; set; }
/// <summary>
/// 自定义序号:用于推送通讯命令
/// </summary>
public long Customer { get { return this.customer; } }
}
}