Example #1
0
 public void Slave(string path, string masterhost)
 {
     path            = CorrectPath(path);
     this.path       = path;
     this.masterhost = masterhost;
     ismaster        = false;
     bosscomm        = new Communal(masterhost, 5007, false);
     indicomm        = new Individual(false, masterhost, indiport, tass, ExecComm);
     speed_test      = new IndividualSpeed(false, masterhost, 6002);
 }
Example #2
0
 // Публичные методы
 public void Master(string path)
 {
     path       = CorrectPath(path);
     this.path  = path;
     nodecode   = 0;
     ismaster   = true;
     bosscomm   = new Communal(myhost, 5007, true);                       // Адреса быть не должно...
     indicomm   = new Individual(true, masterhost, indiport, tass, null); // мастеру не положено пользоваться функцией
     speed_test = new IndividualSpeed(true, masterhost, 6002);
 }