初始化CRICS
This commit is contained in:
46
RCUHost/Implement/ReceiverContext.cs
Normal file
46
RCUHost/Implement/ReceiverContext.cs
Normal 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; } }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user