- Timestamp:
- May 7, 2015, 5:21:45 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/multiplayerFS15/src/libraries/network/WANDiscoverable.cc
r10427 r10434 58 58 * has changed. 59 59 */ 60 SetConfigValueExternal(msaddress, " WANDiscovery", "msaddress", "orxonox.net");61 SetConfigValueExternal(ownName, " WANDiscovery", "ownName", "tme213");60 SetConfigValueExternal(msaddress, "Discovery", "msaddress", "orxonox.net"); 61 SetConfigValueExternal(ownName, "Discovery", "ownName", "tme213"); 62 62 // SetConfigValue( msaddress, "orxonox.net"); 63 63 } … … 106 106 orxout(verbose, context::master_server) << "Initialization of WANDiscoverable complete." << endl; 107 107 108 // Now register the server at the master server 109 this->msc.sendRequest( MSPROTO_GAME_SERVER " " MSPROTO_REGISTER_SERVER ); 110 108 111 std::string request = MSPROTO_GAME_SERVER " " MSPROTO_SET_NAME " "; 109 112 request += this->ownName; 110 111 // Now register the server at the master server112 this->msc.sendRequest( MSPROTO_GAME_SERVER " " MSPROTO_REGISTER_SERVER );113 113 this->msc.sendRequest( request ); 114 115 114 116 115 return true; … … 123 122 } 124 123 124 void WANDiscoverable::updateClientNumber(int clientNumber) 125 { 126 orxout(verbose, context::master_server) << "Sending new number of clients: " << clientNumber << endl; 127 std::string request = MSPROTO_GAME_SERVER " " MSPROTO_SET_CLIENTS " "; 128 std::stringstream ss; 129 ss << clientNumber; 130 request += ss.str(); 131 132 this->msc.sendRequest( request ); 133 } 134 125 135 126 136
Note: See TracChangeset
for help on using the changeset viewer.