Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

aaaand it works

Location:
code/branches/masterserver/src/libraries/network
Files:
2 edited

Legend:

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

    r7737 r7738  
    4141  ManageScopedSingleton(WANDiscovery, ScopeID::Root, true);
    4242
    43   void WANDiscovery::setConfigValues()
    44   {
    45     SetConfigValue(this->msaddr, "msaddr");
    46   }
    4743
    4844  WANDiscovery::WANDiscovery()
     
    5450    RegisterObject(WANDiscovery);
    5551
    56     /* set default string for this->msaddr */
    57     this->msaddr = "localhost";
    58 
    5952    /* ... and register a config value function for it */
    6053    this->setConfigValues();
     
    6558
    6659    /* connect and see if it worked */
    67     if( msc.connect( this->msaddr.c_str(), 1234 ) )
     60    if( msc.connect( this->msaddress.c_str(), 1234 ) )
    6861      COUT(2) << "Error: could not connect to master server at "
    69         << this->msaddr << std::endl;
     62        << this->msaddress << std::endl;
    7063
    7164    /* debugging output */
    7265    COUT(4) << "Initialization of WANDiscovery complete.\n";
    7366  }
     67
     68  void WANDiscovery::setConfigValues()
     69  {
     70    SetConfigValue( msaddress, "localhost");
     71  }
    7472
    7573  WANDiscovery::~WANDiscovery()
  • code/branches/masterserver/src/libraries/network/WANDiscovery.h

    r7737 r7738  
    100100
    101101      /** master server address */
    102       std::string msaddr;
     102      std::string msaddress;
    103103
    104104  }; // tolua_export
Note: See TracChangeset for help on using the changeset viewer.