Changeset 9471 in orxonox.OLD for branches/proxy/src
- Timestamp:
- Jul 25, 2006, 10:35:06 PM (18 years ago)
- Location:
- branches/proxy/src/lib/network
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/lib/network/network_manager.cc
r9470 r9471 133 133 this->networkStream = new NetworkStream(NET_PROXY_SERVER_ACTIVE ); 134 134 // first connect to the master server for synchronization 135 this->networkStream->connectToMasterServer(NetworkSettings::getInstance()->getMasterAddr().ipString(), 9999);135 this->networkStream->connectToMasterServer(NetworkSettings::getInstance()->getMasterAddr().ipString(), 10000); 136 136 // start the handshake with the master server 137 137 this->networkStream->startHandshake(NET_ID_MASTER_SERVER); -
branches/proxy/src/lib/network/network_stream.cc
r9470 r9471 253 253 void NetworkStream::startHandshake(int userId) 254 254 { 255 Handshake* hs = new Handshake( NET_CLIENT/* this->pInfo->nodeType*/);255 Handshake* hs = new Handshake(this->pInfo->nodeType); 256 256 // fake the unique id 257 257 hs->setUniqueID( NET_UID_HANDSHAKE ); … … 399 399 // this creates a new entry in the peers list 400 400 peers[userId].socket = tempNetworkSocket; 401 peers[userId].nodeType = NET_CLIENT; 401 402 this->handleConnect(userId); 402 403 … … 430 431 // this creates a new entry in the peers list 431 432 peers[userId].socket = tempNetworkSocket; 433 peers[userId].nodeType = NET_PROXY_SERVER_ACTIVE; 432 434 this->handleConnect(userId); 433 435 … … 492 494 493 495 // the connecting node of course is a client 494 peers[userId].nodeType = NET_CLIENT;495 496 peers[userId].ip = peers[userId].socket->getRemoteAddress(); 496 497 } … … 555 556 { 556 557 // make sure this is a client 557 if( this->pInfo->isClient() || SharedNetworkData::getInstance()->isProxyServerActive())558 if( SharedNetworkData::getInstance()->isClient() || SharedNetworkData::getInstance()->isProxyServerActive()) 558 559 { 559 560 SharedNetworkData::getInstance()->setHostID( it->second.handshake->getHostId() ); … … 592 593 { 593 594 594 if ( this->pInfo->isMasterServer() )595 if ( SharedNetworkData::getInstance()->isMasterServer() ) 595 596 { 596 597 it->second.nodeType = it->second.handshake->getRemoteNodeType();
Note: See TracChangeset
for help on using the changeset viewer.