- Timestamp:
- Dec 8, 2010, 4:08:22 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/masterserver/src/libraries/network/WANDiscovery.cc
r7692 r7737 41 41 ManageScopedSingleton(WANDiscovery, ScopeID::Root, true); 42 42 43 void WANDiscovery::setConfigValues() 44 { 45 SetConfigValue(this->msaddr, "msaddr"); 46 } 47 43 48 WANDiscovery::WANDiscovery() 44 49 { 50 /* debugging output */ 45 51 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(); 46 61 47 62 /* initialize it and see if it worked */ … … 50 65 51 66 /* connect and see if it worked */ 52 if( msc.connect( MS_ADDRESS, 1234 ) )67 if( msc.connect( this->msaddr.c_str(), 1234 ) ) 53 68 COUT(2) << "Error: could not connect to master server at " 54 << MS_ADDRESS<< std::endl;69 << this->msaddr << std::endl; 55 70 71 /* debugging output */ 56 72 COUT(4) << "Initialization of WANDiscovery complete.\n"; 57 73 }
Note: See TracChangeset
for help on using the changeset viewer.