Changeset 9341 in orxonox.OLD for branches/proxy
- Timestamp:
- Jul 20, 2006, 11:04:14 AM (18 years ago)
- Location:
- branches/proxy/src/lib/network
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/lib/network/monitor/network_monitor.cc
r9338 r9341 247 247 // check if a proxy server has to activated 248 248 249 this->debug();249 // this->debug(); 250 250 } 251 251 -
branches/proxy/src/lib/network/network_stream.cc
r9340 r9341 335 335 336 336 peers[clientId].socket = tempNetworkSocket; 337 337 // create new handshake and init its variables 338 338 peers[clientId].handshake = new Handshake(this->pInfo->nodeType, clientId, this->networkGameManager->getUniqueID(), MessageManager::getInstance()->getUniqueID() ); 339 339 peers[clientId].handshake->setUniqueID(clientId); … … 345 345 346 346 // get the proxy server informations and write them to the handshake, if any (proxy) 347 assert( this->networkMonitor != NULL); 347 348 PeerInfo* pi = this->networkMonitor->getFirstChoiceProxy(); 348 349 if( pi != NULL) 350 { 349 351 peers[clientId].handshake->setProxy1Address( pi->ip); 352 PRINTF(0)("proxy1 ip set to: %s\n", pi->ip.ipString().c_str()); 353 } 350 354 351 355 pi = this->networkMonitor->getSecondChoiceProxy(); … … 356 360 peers[clientId].handshake->setRedirect(this->networkMonitor->isReconnectNextClient()); 357 361 358 362 // the connecting node of course is a client 359 363 peers[clientId].nodeType = NET_CLIENT; 360 364 peers[clientId].ip = peers[clientId].socket->getRemoteAddress(); … … 496 500 // get proxy 1 address and add it 497 501 this->networkMonitor->addNode(it->second.handshake->getProxy1Address(), NET_PROXY_SERVER_ACTIVE); 502 PRINTF(0)("proxy1 ip read to: %s\n", it->second.handshake->getProxy1Address().ipString().c_str()); 498 503 // get proxy 2 address and add it 499 504 this->networkMonitor->addNode(it->second.handshake->getProxy2Address(), NET_PROXY_SERVER_ACTIVE);
Note: See TracChangeset
for help on using the changeset viewer.