Changeset 7738 for code/branches/masterserver/src/libraries/network
- Timestamp:
- Dec 8, 2010, 4:13:02 PM (14 years ago)
- Location:
- code/branches/masterserver/src/libraries/network
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/masterserver/src/libraries/network/WANDiscovery.cc
r7737 r7738 41 41 ManageScopedSingleton(WANDiscovery, ScopeID::Root, true); 42 42 43 void WANDiscovery::setConfigValues()44 {45 SetConfigValue(this->msaddr, "msaddr");46 }47 43 48 44 WANDiscovery::WANDiscovery() … … 54 50 RegisterObject(WANDiscovery); 55 51 56 /* set default string for this->msaddr */57 this->msaddr = "localhost";58 59 52 /* ... and register a config value function for it */ 60 53 this->setConfigValues(); … … 65 58 66 59 /* connect and see if it worked */ 67 if( msc.connect( this->msaddr .c_str(), 1234 ) )60 if( msc.connect( this->msaddress.c_str(), 1234 ) ) 68 61 COUT(2) << "Error: could not connect to master server at " 69 << this->msaddr << std::endl;62 << this->msaddress << std::endl; 70 63 71 64 /* debugging output */ 72 65 COUT(4) << "Initialization of WANDiscovery complete.\n"; 73 66 } 67 68 void WANDiscovery::setConfigValues() 69 { 70 SetConfigValue( msaddress, "localhost"); 71 } 74 72 75 73 WANDiscovery::~WANDiscovery() -
code/branches/masterserver/src/libraries/network/WANDiscovery.h
r7737 r7738 100 100 101 101 /** master server address */ 102 std::string msaddr ;102 std::string msaddress; 103 103 104 104 }; // tolua_export
Note: See TracChangeset
for help on using the changeset viewer.