add kcp
This commit is contained in:
@@ -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>
|
||||
/// 基本网络客户端的接口定义,包括了基本客户端的功能
|
||||
|
Reference in New Issue
Block a user