using System; using System.Net.Sockets; namespace TcpServer { /// /// 与客户端的连接已断开事件参数 /// public class TcpClientDisconnectedEventArgs : EventArgs { /// /// 与客户端的连接已断开事件参数 /// /// 客户端状态 public TcpClientDisconnectedEventArgs(TcpClient tcpClient) { if (tcpClient == null) throw new ArgumentNullException("tcpClient"); this.TcpClient = tcpClient; } /// /// 客户端 /// public TcpClient TcpClient { get; private set; } } }