예제 #1
0
 /// <summary>
 /// 设置与对方的P2PGroupClient,并将P2PGroupClient的owner设为自己。
 /// 由于对方连接到自己而调用。
 /// </summary>
 /// <param name="newSocketHandler"></param>
 /// <param name="targetName">发起方的用户名</param>
 public void SetHandlerForSocket(
     P2PGroupClient newSocketHandler, string targetName)
 {
     clients.Add(targetName, newSocketHandler);
     newSocketHandler.SetOwner(this);
 }