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