Changeset 6658 in orxonox.OLD for branches/network/src/lib/network/network_stream.cc
- Timestamp:
- Jan 23, 2006, 2:43:50 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/lib/network/network_stream.cc
r6634 r6658 84 84 // setUniqueID( maxCon+2 ) because we need one id for every handshake 85 85 // and one for handshake to reject client maxCon+1 86 this->networkGameManager->setUniqueID( this->maxConnections +2 );86 this->networkGameManager->setUniqueID( this->maxConnections + 2 ); 87 87 this->connectSynchronizeable( *(this->networkGameManager) ); 88 88 … … 141 141 } 142 142 143 143 144 void NetworkStream::disconnectSynchronizeable(Synchronizeable& sync) 144 145 { … … 216 217 /* DOWNSTREAM */ 217 218 219 220 218 221 int dataLength; 219 222 int reciever; … … 221 224 for (SynchronizeableList::iterator it = synchronizeables.begin(); it!=synchronizeables.end(); it++) 222 225 { 223 if ( (*it)!=NULL /*&& (*it)->getOwner() == myHostId*/ )226 if ( (*it)!=NULL && (*it)->beSynchronized() /*&& (*it)->getOwner() == myHostId*/ ) 224 227 { 225 228 do { … … 416 419 417 420 421 422 void NetworkStream::debug() 423 { 424 PRINT(0)("=================NetworkStream::debug()====\n"); 425 PRINT(0)(" Host ID: %i\n", this->myHostId); 426 427 PRINT(0)(" Connected Synchronizeables:\n"); 428 for (SynchronizeableList::iterator it = synchronizeables.begin(); it!=synchronizeables.end(); it++) 429 { 430 PRINT(0)(" Synchronizeable of class: %s::%s, with unique ID: %i\n", (*it)->getClassName(), (*it)->getName(), (*it)->getUniqueID()); 431 } 432 433 PRINT(0)(" Maximal Connections: %i\n", this->maxConnections); 434 PRINT(0)("===========================================\n"); 435 436 } 437 438 439 440 441 442 443 444 445 446 447 448 449 450
Note: See TracChangeset
for help on using the changeset viewer.