| | |
| | | |
| | | namespace TcpServer |
| | | { |
| | | /// <summary> |
| | | /// 与客户端的连接已建立事件参数 |
| | | /// </summary> |
| | | public class TcpClientConnectedEventArgs : EventArgs |
| | | { |
| | | /// <summary> |
| | | /// 与客户端的连接已建立事件参数 |
| | | /// </summary> |
| | | /// <param name="tcpClient">客户端</param> |
| | | public TcpClientConnectedEventArgs (TcpClient tcpClient) |
| | | { |
| | | if (tcpClient == null) |
| | | throw new ArgumentNullException ("tcpClient"); |
| | | /// <summary> |
| | | /// 与客户端的连接已建立事件参数 |
| | | /// </summary> |
| | | public class TcpClientConnectedEventArgs : EventArgs |
| | | { |
| | | /// <summary> |
| | | /// 与客户端的连接已建立事件参数 |
| | | /// </summary> |
| | | /// <param name="tcpClient">客户端</param> |
| | | public TcpClientConnectedEventArgs(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; } |
| | | } |
| | | } |