Ejemplo n.º 1
0
 public void NewBrute(String name)
 {
     Console.WriteLine("NewBrute");
      if(!SocketServer.listBrute.ContainsKey(name))
      {
          Brute brute = new Brute(name);
          brute.randomValue();
          SocketServer.listBrute.Add(name,brute);
          this.GetWriter.CreateDiscriminant(ProtocoleImplementation.ANSWER_OK);
     }
      else
          this.GetWriter.CreateDiscriminant(ProtocoleImplementation.ANSWER_KO);
      this.GetWriter.Send();
      Console.WriteLine("NewBrute");
 }