Ignore:
Timestamp:
01/14/03 12:08:46 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Cosy/candrv/network.cc

    r1702 r1703  
    237237            lout << "- Setting up Node #" << dec << i << " (";
    238238            lout << fNodes[i]->GetNodeName() << ")" << endl;
    239             fNodes[i]->InitDevice(this);
    240             if (!fNodes[i]->IsZombieNode())
     239            if (fNodes[i]->InitDevice(this))
    241240                fNodeInitialized[i] = TRUE;
    242             /*else
    243                 fNodes[i]=NULL;*/
     241            else
     242                lout << "- " << fNodes[i]->GetNodeName() << ": InitDevice failed." << endl;
    244243        }
    245244    lout << "- All Nodes setup." << endl;
     
    310309bool Network::RebootZombies()
    311310{
     311    bool rc = true;
     312
    312313    lout << "- Trying to reboot all Zombies..." << endl;
    313314    for (int i=0; i<32; i++)
     
    317318                {
    318319                    lout << "- Failed to reboot " << fNodes[i]->GetNodeName() << "." << endl;
    319                     return false;
     320                    rc = false;
    320321                }
    321322
    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//
     334void 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.