- Timestamp:
- Jul 24, 2006, 5:39:17 PM (18 years ago)
- Location:
- branches/proxy/src/lib/network
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/lib/network/ip.cc
r9426 r9441 269 269 part1.getString() + "." + part0.getString(); 270 270 271 if (port != -1) 272 addr += ":" + MultiType(port).getString(); 271 #warning ip and ports are not handled correctly 272 // if (port != -1) 273 // addr += ":" + MultiType(port).getString(); 273 274 return addr; 274 275 } -
branches/proxy/src/lib/network/network_stream.cc
r9440 r9441 204 204 PRINTF(0)("connect to proxy %s, this is node %i\n", host.c_str(), node); 205 205 206 if( this->peers[node].socket != NULL)207 delete this->peers[node].socket;208 209 206 this->peers[node].socket = new UdpSocket( host, port ); 210 207 this->peers[node].userId = 0; … … 451 448 this->handleDisconnect( it->second.userId); 452 449 453 #warning this is some more disconnct handling, consider doing it in the handleDisconnect() funciton454 // and cleanup the user infos455 // for ( SynchronizeableList::iterator it2 = synchronizeables.begin(); it2 != synchronizeables.end(); it2++ )456 // {457 // (*it2)->cleanUpUser( it->second.userId );458 // }459 //460 // NetworkGameManager::getInstance()->signalLeftPlayer(it->second.userId);461 //462 // freeSocketSlots.push_back( it->second.userId );463 464 // PeerList::iterator delit = it;465 450 it++; 466 467 // peers.erase( delit );468 469 451 continue; 470 452 } … … 643 625 // pInfo->socket->reconnectToServer( proxyIP.ipString(), proxyIP.port()); 644 626 this->handleDisconnect( userId); 645 //this->connectToProxyServer(proxyIP.ipString(), 9999);627 this->connectToProxyServer(proxyIP.ipString(), 9999); 646 628 #warning the ports are not yet integrated correctly in the ip class 647 629
Note: See TracChangeset
for help on using the changeset viewer.