Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 30, 2006, 11:19:24 PM (18 years ago)
Author:
patrick
Message:

yet another weekend commit, quite much work done:

  • introduced a new PERMISSION layer: PERMISSION_SERVER: the nearest server hast authority
  • tightening up permissions: brand new implementation to prevent sending unused variables in the network (less smog in the net:D_
  • removed some compiler warnings from some central modules
  • networkmonitor interface changed to work with networknodes mainly
  • better debug output for the network monitor
  • networnode inteface standardisation
  • force reconnection commands integration
File:
1 edited

Legend:

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

    r9605 r9625  
    8181      // init the shared network data
    8282      SharedNetworkData::getInstance()->setHostID(NET_ID_MASTER_SERVER);
     83      this->pInfo->userId = NET_ID_MASTER_SERVER;
     84      this->pInfo->nodeType = NET_MASTER_SERVER;
     85
    8386      break;
    8487    case NET_PROXY_SERVER_ACTIVE:
    8588      // init the shared network data
    8689      SharedNetworkData::getInstance()->setHostID(NET_ID_PROXY_SERVER_01);
     90      this->pInfo->nodeType = NET_PROXY_SERVER_ACTIVE;
     91
    8792      break;
    8893    case NET_PROXY_SERVER_PASSIVE:
    8994      // init the shared network data
    9095      SharedNetworkData::getInstance()->setHostID(NET_ID_PROXY_SERVER_01);
     96      this->pInfo->nodeType = NET_PROXY_SERVER_PASSIVE;
     97
    9198      break;
    9299    case NET_CLIENT:
    93100      SharedNetworkData::getInstance()->setHostID(NET_ID_UNASSIGNED);
     101      this->pInfo->nodeType = NET_CLIENT;
    94102      break;
    95103  }
     
    526534    it++;
    527535  }
    528 
    529 
    530536}
    531537
     
    685691//               it->second.ip = it->second.socket->getRemoteAddress();
    686692
    687               // it->second.nodeType = it->second.handshake->getRemoteNodeType();
     693              it->second.nodeType = it->second.handshake->getRemoteNodeType();
    688694              // it->second.ip = it->second.socket->getRemoteAddress();
    689695              // add the new server to the nodes list (it can be a NET_MASTER_SERVER or NET_PROXY_SERVER)
Note: See TracChangeset for help on using the changeset viewer.