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