示例#1
0
 public void AddNewClient(Socket clientSocket)
 {
     lock (key)
     {
         int id = idManager.GetID();
         Console.WriteLine(id);
         clients.Add(id, clientSocket);
         Thread td = new Thread(() => listener.ListenClient(id, clientSocket));
         td.Start();
     }
 }