using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Text; using System.Threading.Tasks; namespace ToolsClassLibrary.UDP { /// /// 数据包事件数据 /// public class PackageEventArgs : EventArgs { /// /// 网络消息包 /// public UdpPacket udpPackage { get; set; } /// /// 网络消息包组 /// public UdpPacket[] udpPackages { get; set; } /// /// 远程IP /// public IPEndPoint RemoteIP { get; set; } /// /// 是否已经处理 /// public bool IsHandled { get; set; } /// /// 创建一个新的 PackageEventArgs 对象. /// public PackageEventArgs(UdpPacket package, IPEndPoint RemoteIP) { this.udpPackage = package; this.RemoteIP = RemoteIP; this.IsHandled = false; } } }