Changeset 9374 in orxonox.OLD for branches/proxy/src/lib
- Timestamp:
- Jul 21, 2006, 1:12:57 AM (18 years ago)
- Location:
- branches/proxy/src/lib/network
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/lib/network/network_stream.cc
r9371 r9374 404 404 it->second.socket = NULL; 405 405 406 // remove the old connectin monitor 406 407 if ( it->second.connectionMonitor ) 407 408 delete it->second.connectionMonitor; 408 409 it->second.connectionMonitor = NULL; 409 410 411 // remove the handshake 410 412 if ( it->second.handshake ) 411 413 delete it->second.handshake; 412 414 it->second.handshake = NULL; 413 415 416 // and cleanup the user infos 414 417 for ( SynchronizeableList::iterator it2 = synchronizeables.begin(); it2 != synchronizeables.end(); it2++ ) 415 418 { … … 488 491 if ( !it->second.handshake->allowDel() ) 489 492 { 493 490 494 if ( this->pInfo->nodeType == NET_CLIENT ) 491 495 { 496 492 497 SharedNetworkData::getInstance()->setHostID( it->second.handshake->getHostId() ); 493 498 this->pInfo->userId = SharedNetworkData::getInstance()->getHostID(); … … 515 520 516 521 PRINT(0)("handshake finished id=%d\n", it->second.handshake->getNetworkGameManagerId()); 517 518 522 it->second.handshake->del(); 519 523 } -
branches/proxy/src/lib/network/shared_network_data.cc
r9357 r9374 18 18 #include "shared_network_data.h" 19 19 #include "netdefs.h" 20 #include "state.h" 20 21 21 22 … … 35 36 this->hostID = -1; 36 37 this->defaultSyncStream = NULL; 37 this->newUniqueID = NET_MAX_CONNECTIONS + 2; 38 39 if(State::isOnline()) 40 this->newUniqueID = ProxySettings::getInstance()->getMaxPlayer() + 2; 41 else 42 this->newUniqueID = NET_MAX_CONNECTIONS + 2; 38 43 this->nodeType = NET_CLIENT; 39 44 }
Note: See TracChangeset
for help on using the changeset viewer.