init commit

This commit is contained in:
zhaowei.huang
2026-06-14 11:19:15 +08:00
parent e79a3815a5
commit c8e540d272
174 changed files with 60830 additions and 39 deletions
@@ -0,0 +1,31 @@
using System;
using System.Globalization;
using System.Net;
namespace StandardScene.TCP
{
/// <summary>
/// 与服务器的连接已建立事件
/// </summary>
public class TcpServerConnectedEventArgs : EventArgs
{
public TcpServerConnectedEventArgs(IPAddress ipAddress, int port)
{
if (ipAddress == null)
{
throw new ArgumentNullException("ipAddress");
}
this.Address = ipAddress;
this.Port = port;
}
public IPAddress Address { get; private set; }
public int Port { get; private set; }
public override string ToString()
{
return this.Address + ":" + this.Port.ToString(CultureInfo.InvariantCulture);
}
}
}