Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 8, 2010, 4:08:22 PM (13 years ago)
Author:
smerkli
Message:

pre-merge

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/masterserver/src/libraries/network/WANDiscovery.cc

    r7692 r7737  
    4141  ManageScopedSingleton(WANDiscovery, ScopeID::Root, true);
    4242
     43  void WANDiscovery::setConfigValues()
     44  {
     45    SetConfigValue(this->msaddr, "msaddr");
     46  }
     47
    4348  WANDiscovery::WANDiscovery()
    4449  {
     50    /* debugging output */
    4551    COUT(4) << "Creating WANDiscovery.\n";
     52 
     53    /* register object with orxonox main class */
     54    RegisterObject(WANDiscovery);
     55
     56    /* set default string for this->msaddr */
     57    this->msaddr = "localhost";
     58
     59    /* ... and register a config value function for it */
     60    this->setConfigValues();
    4661
    4762    /* initialize it and see if it worked */
     
    5065
    5166    /* connect and see if it worked */
    52     if( msc.connect( MS_ADDRESS, 1234 ) )
     67    if( msc.connect( this->msaddr.c_str(), 1234 ) )
    5368      COUT(2) << "Error: could not connect to master server at "
    54         << MS_ADDRESS << std::endl;
     69        << this->msaddr << std::endl;
    5570
     71    /* debugging output */
    5672    COUT(4) << "Initialization of WANDiscovery complete.\n";
    5773  }
Note: See TracChangeset for help on using the changeset viewer.