- Timestamp:
- Jul 25, 2006, 9:31:01 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/lib/network/network_stream.cc
r9441 r9446 185 185 { 186 186 int node = this->peers.size(); 187 // this create the new node in the peers map 187 188 this->peers[node].socket = new UdpSocket( host, port ); 188 189 this->peers[node].userId = 0; … … 331 332 this->handleReconnect( 0); 332 333 } 333 334 PRINTF(0)("node count: %i\n", peers.size());335 for ( PeerList::iterator it = peers.begin(); it != peers.end(); it++ )336 {337 PRINTF(0)("still got peer: %s\n", it->second.ip.ipString().c_str());338 }339 334 } 340 335 … … 380 375 clientId = it->first + 1; 381 376 } 377 // this creates a new entry in the peers list 382 378 peers[clientId].socket = tempNetworkSocket; 383 379 … … 623 619 624 620 // disconnect from the current server and reconnect to proxy server 625 // pInfo->socket->reconnectToServer( proxyIP.ipString(), proxyIP.port());626 621 this->handleDisconnect( userId); 627 622 this->connectToProxyServer(proxyIP.ipString(), 9999); 628 #warning the ports are not yet integrated correctly in the ip class623 #warning the ports are not yet integrated correctly in the ip class 629 624 630 625 // and restart the handshake 631 //this->startHandshake( userId);626 this->startHandshake( userId); 632 627 } 633 628 … … 661 656 this->freeSocketSlots.push_back( userId ); 662 657 663 PRINTF(0)("nodes: %i\n", peers.size());664 658 peers.erase( userId); 665 PRINTF(0)("nodes: %i\n", peers.size());666 667 // this->pInfo->userId = 0;668 // this->pInfo->lastAckedState = 0;669 // this->pInfo->lastRecvedState = 0;670 // this->pInfo->connectionMonitor = NULL;671 // this->pInfo->handshake = NULL;672 // this->pInfo->socket = NULL;673 // this->pInfo->nodeType = NET_CLIENT;674 659 } 675 660
Note: See TracChangeset
for help on using the changeset viewer.