Changeset 1703 for trunk/MagicSoft/Cosy/candrv/network.cc
- Timestamp:
- 01/14/03 12:08:46 (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/candrv/network.cc
r1702 r1703 237 237 lout << "- Setting up Node #" << dec << i << " ("; 238 238 lout << fNodes[i]->GetNodeName() << ")" << endl; 239 fNodes[i]->InitDevice(this); 240 if (!fNodes[i]->IsZombieNode()) 239 if (fNodes[i]->InitDevice(this)) 241 240 fNodeInitialized[i] = TRUE; 242 /*else243 fNodes[i]=NULL;*/241 else 242 lout << "- " << fNodes[i]->GetNodeName() << ": InitDevice failed." << endl; 244 243 } 245 244 lout << "- All Nodes setup." << endl; … … 310 309 bool Network::RebootZombies() 311 310 { 311 bool rc = true; 312 312 313 lout << "- Trying to reboot all Zombies..." << endl; 313 314 for (int i=0; i<32; i++) … … 317 318 { 318 319 lout << "- Failed to reboot " << fNodes[i]->GetNodeName() << "." << endl; 319 r eturnfalse;320 rc = false; 320 321 } 321 322 322 lout << "- All Zombies rebooted." << endl; 323 324 return true; 325 } 323 if (rc) 324 lout << "- All Zombies rebooted." << endl; 325 326 return rc; 327 } 328 329 // -------------------------------------------------------------------------- 330 // 331 // Check the connections to all nodes. (This can also mean: Validate 332 // the correct setup, etc) 333 // 334 void Network::CheckConnections() 335 { 336 for (int i=0; i<32; i++) 337 if (fNodes[i]) 338 fNodes[i]->CheckConnection(); 339 } 340
Note:
See TracChangeset
for help on using the changeset viewer.