47 lines
1.3 KiB
C#
47 lines
1.3 KiB
C#
|
|
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; } }
|
|||
|
|
}
|
|||
|
|
}
|