Changeset 9410 in orxonox.OLD
- Timestamp:
- Jul 24, 2006, 11:20:25 AM (18 years ago)
- Location:
- branches/proxy/src/lib/network
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/lib/network/monitor/network_monitor.cc
r9406 r9410 259 259 PRINT(0)("================================= Network Monitor::debug() =====\n"); 260 260 PRINT(0)(" I am: %s\n", this->localNode->getPeerInfo()->getNodeTypeString().c_str()); 261 PRINT(0)(" Total count of network connections: %i\n", this->playerNumber); 261 PRINT(0)(" Total count of network connections: %i\n", this->connectionNumber); 262 PRINT(0)(" Total count of players: %i\n", this->playerNumber); 262 263 PRINT(0)(" Max players on this server: %i\n", SharedNetworkData::getInstance()->getMaxPlayer()); 263 264 -
branches/proxy/src/lib/network/proxy/network_settings.cc
r9409 r9410 104 104 105 105 LoadParam(root, "max-player", this, NetworkSettings, setMaxPlayer); 106 LoadParam(root, "max-player-saturation", this, NetworkSettings, setMaxPlayerSaturation s);106 LoadParam(root, "max-player-saturation", this, NetworkSettings, setMaxPlayerSaturation); 107 107 108 108 -
branches/proxy/src/lib/network/proxy/network_settings.h
r9409 r9410 36 36 /** @param number: sets the max number of players */ 37 37 inline void setMaxPlayer(int number) { this->maxPlayer = number; } 38 /** @returns teh max number of players */ 39 int getMaxPlayer() { return this->maxPlayer; } 38 40 /** sets the @param saturation: a threshold in percente when the proxy servers should be activated to be able to redirect the clients */ 39 41 inline void setMaxPlayerSaturation(float saturation) { this->maxPlayerSaturation = saturation; } 40 /** @returns teh max number of players */ 41 int getMaxPlayer() { return this->maxPlayer; } 42 42 43 43 44 void setMasterAddr(const std::string& masterAddr);
Note: See TracChangeset
for help on using the changeset viewer.