Changeset 9531 in orxonox.OLD for branches/proxy/src/lib
- Timestamp:
- Jul 27, 2006, 9:59:32 PM (18 years ago)
- Location:
- branches/proxy/src/lib/network
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/lib/network/README.NETWORK
r9514 r9531 49 49 50 50 51 The ids are created by the master/proxy servers. Each server receives an address space of 1000 nodes where it is able to assign nodes to. This address space could be extended quite easely, since we got plenty of numbers in 4bytes (integer) 52 53 51 54 52 55 uniqueId: -
branches/proxy/src/lib/network/network_stream.cc
r9494 r9531 388 388 if ( freeSocketSlots.size() > 0 ) 389 389 { 390 // this should never be called 391 assert(false); 390 392 userId = freeSocketSlots.back(); 391 393 freeSocketSlots.pop_back(); … … 393 395 else 394 396 { 395 userId = 1; 397 //userId = 1; 398 // each server (proxy and master) have an address space for new network nodes of 1000 nodes 399 userId = SharedNetworkData::getInstance()->getHostID() * 1000; 396 400 397 401 for ( PeerList::iterator it = peers.begin(); it != peers.end(); it++ ) 398 402 if ( it->first >= userId ) 399 403 userId = it->first + 1; 404 405 assert( userId < (SharedNetworkData::getInstance()->getHostID() + 1) * 1000); 400 406 } 401 407 // this creates a new entry in the peers list -
branches/proxy/src/lib/network/player_stats.cc
r9530 r9531 141 141 void PlayerStats::setPlayableUniqueId( int uniqueId ) 142 142 { 143 PRINTF(0)("SET PLAYABLE!!!!!!!!!!11\n\n");144 143 const std::list<BaseObject*> * list = ClassList::getList( CL_PLAYABLE ); 145 144
Note: See TracChangeset
for help on using the changeset viewer.