Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9598 in orxonox.OLD for branches/proxy/src/lib/network


Ignore:
Timestamp:
Jul 29, 2006, 2:15:52 AM (18 years ago)
Author:
patrick
Message:

redirection seems to work good now

Location:
branches/proxy/src/lib/network
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/proxy/src/lib/network/network_stream.cc

    r9597 r9598  
    732732  // disconnect from the current server and reconnect to proxy server
    733733  this->handleDisconnect( userId);
    734   this->connectToProxyServer(NET_ID_PROXY_SERVER_01, proxyIP.ipString(), 9999);
     734//   this->connectToProxyServer(NET_ID_PROXY_SERVER_01, proxyIP.ipString(), 9999);
     735  this->connectToMasterServer(proxyIP.ipString(), 9999);
    735736  #warning the ports are not yet integrated correctly in the ip class
    736737
  • branches/proxy/src/lib/network/synchronizeable.cc

    r9594 r9598  
    364364    // check if this synchronizeable has the permissions to write the data
    365365
    366 #if 0
    367 
    368     //  MASTER_SERVER |====> *
    369     if( SharedNetworkData::getInstance()->isMasterServer() && (*it)->checkPermission( PERMISSION_MASTER_SERVER ))
    370       hasPermission = true;
    371     else if( SharedNetworkData::getInstance()->isMasterServer() && this->owner != userId && (*it)->checkPermission( PERMISSION_OWNER ))
    372       hasPermission = true;
    373 
    374     // PROXY_SERVER  |====> *
    375     else if( SharedNetworkData::getInstance()->isProxyServerActive() && (*it)->checkPermission( PERMISSION_PROXY_SERVER ))
    376       hasPermission = true;
    377     else if( SharedNetworkData::getInstance()->isProxyServerActive() && this->owner != userId && (*it)->checkPermission( PERMISSION_OWNER ))
    378       hasPermission = true;
    379     // PROXY_SERVER  |====> MASTER_SERVER
    380     else if( SharedNetworkData::getInstance()->isProxyServerActive() && this->networkStream->isUserMasterServer(userId)
    381              && this->networkStream->isUserLocal(userId) && (*it)->checkPermission( PERMISSION_MASTER_SERVER))
    382       hasPermission = true;
    383     // PROXY_SERVER  |====> CLIENT
    384     else if( SharedNetworkData::getInstance()->isProxyServerActive() && this->networkStream->isUserClient(userId)
    385              && this->owner != userId && (*it)->checkPermission( PERMISSION_OWNER ) )
    386       hasPermission = true;
    387     else if( SharedNetworkData::getInstance()->isProxyServerActive() && this->networkStream->isUserClient(userId)
    388              && (*it)->checkPermission( PERMISSION_MASTER_SERVER) )
    389       hasPermission = true;
    390 
    391     // OWNER         |====> *
    392     else if( this->owner == SharedNetworkData::getInstance()->getHostID() && (*it)->checkPermission( PERMISSION_OWNER ))
    393       hasPermission = true;
    394 
    395     // ALL           |====> *
    396     else if( (*it)->checkPermission( PERMISSION_ALL ))
    397       hasPermission = true;
    398 
    399     else
    400       hasPermission = false;
    401 
    402 #endif
     366
    403367
    404368
Note: See TracChangeset for help on using the changeset viewer.