using System;
using System.Net.Sockets;

namespace StandardScene.TCP
{
    /// <summary>
    /// 接收到数据报文事件
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class TcpDatagramReceivedEventArgs<T> : EventArgs
    {
        public TcpDatagramReceivedEventArgs(TcpClient tcpClient, T datagram)
        {
            this.TcpClient = tcpClient;
            this.Datagram = datagram;
        }

        public TcpClient TcpClient { get; private set; }

        public T Datagram { get; private set; }
    }
}