This commit is contained in:
CortexCore
2023-10-06 23:43:19 +08:00
parent ebf9c1f526
commit 2c4710bc5d
186 changed files with 111802 additions and 764 deletions

View File

@@ -141,7 +141,7 @@ namespace BITKit
/// <summary>
/// 回调:当客户端连接时
/// </summary>
public event Action<int> OnClientConnect;
public event Action<int> OnClientConnected;
/// <summary>
/// 回调:当客户端断开连接时
@@ -188,6 +188,13 @@ namespace BITKit
/// 所有已连接的客户端
/// </summary>
public IDictionary<int,EndPoint> Connections { get; }
/// <summary>
/// 添加远程命令监听,包括客户端Id
/// </summary>
/// <param name="handle"></param>
/// <typeparam name="T"></typeparam>
void AddCommandListenerWithId<T>(Action<int,T> handle);
}
/// <summary>
/// 基本网络客户端的接口定义,包括了基本客户端的功能