- Timestamp:
- Jul 13, 2006, 11:03:53 PM (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
r9279 r9280 123 123 void NetworkMonitor::process() 124 124 { 125 this->playerNumber = 0; 125 126 std::list<NetworkNode*>::iterator it = this->nodeList.begin(); 126 127 for(; it != this->nodeList.end(); it++) 127 128 { 128 129 this->playerNumber += (*it)->getPlayerNumber(); 129 130 } 130 131 } -
branches/proxy/src/lib/network/monitor/network_monitor.h
r9279 r9280 42 42 inline void removeMasterServer(NetworkNode* node, PeerInfo* pInfo) { node->removeMasterServer(pInfo); } 43 43 44 /** @returns the total number of players in this game (including all proxy servers etc)*/ 45 inline int getPlayerNumber() { return this->playerNumber; } 46 44 47 45 48 void showGUI(); -
branches/proxy/src/lib/network/network_stream.cc
r9279 r9280 266 266 cleanUpOldSyncList(); 267 267 handleHandshakes(); 268 269 // update the network monitor 270 this->networkMonitor->process(); 268 271 269 272 // order of up/downstream is important!!!!
Note: See TracChangeset
for help on using the changeset viewer.