发布1203
大石头 编写于 2019-12-03 22:57:54
X
using System;
using System.Net;
using NewLife.Data;

namespace NewLife.Net
{
    /// <summary>收到数据时的事件参数</summary>
    public class ReceivedEventArgs : EventArgs, IData
    {
        #region 属性
        /// <summary>数据包</summary>
        public Packet Packet { get; set; }

        /// <summary>远程地址</summary>
        public IPEndPoint Remote { get; set; }

        /// <summary>解码后的消息</summary>
        public Object Message { get; set; }

        /// <summary>用户数据</summary>
        public Object UserState { get; set; }
        #endregion

        #region 方法
        //public ReceivedEventArgs Clone()
        //{
        //    var e=new ReceivedEventArgs { }
        //}
        #endregion
    }
}