Changeset 9548 in orxonox.OLD for branches/proxy/src/lib/network/network_stream.cc
- Timestamp:
- Jul 28, 2006, 11:28:32 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/lib/network/network_stream.cc
r9545 r9548 118 118 119 119 this->pInfo = new PeerInfo(); 120 this->pInfo->userId = 0;120 this->pInfo->userId = NET_UID_UNASSIGNED; 121 121 this->pInfo->lastAckedState = 0; 122 122 this->pInfo->lastRecvedState = 0; … … 533 533 } 534 534 535 PRINTF(0)("Current number of connections is: %i\n", this->peers.size()); 536 for ( PeerList::iterator it = peers.begin(); it != peers.end(); it++ ) 537 { 538 PRINTF(0)("peers[%i] with uniqueId %i and address: %s\n", it->first, it->second.userId, it->second.ip.ipString().c_str()); 539 } 540 541 535 542 PRINT(0)(" Got %i connected Synchronizeables, showing active Syncs:\n", this->synchronizeables.size()); 536 543 for (SynchronizeableList::iterator it = synchronizeables.begin(); it!=synchronizeables.end(); it++) … … 643 650 else if ( SharedNetworkData::getInstance()->isProxyServerActive() && it->second.isClient() ) 644 651 { 645 PRINTF(0)("Handshake: i am in server role\n");652 PRINTF(0)("Handshake: Proxy in server role: connecting %i, key: %i\n", it->second.userId, it->first); 646 653 647 654 it->second.ip = it->second.socket->getRemoteAddress(); … … 685 692 { 686 693 this->bRedirect = false; 694 #warning this peer will be created if it does not yet exist: dangerous 687 695 PeerInfo* pInfo = &this->peers[userId]; 688 696
Note: See TracChangeset
for help on using the changeset viewer.