Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 14, 2006, 12:06:30 AM (19 years ago)
Author:
patrick
Message:

another framework switch, and node registration work

File:
1 edited

Legend:

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

    r9281 r9282  
    7979  this->peers[0].socket = new UdpSocket( host, port );
    8080  this->peers[0].userId = 0;
    81   this->peers[0].isMasterServer = true;
     81  this->peers[0].nodeType = NET_MASTER_SERVER;
    8282  this->peers[0].connectionMonitor = new ConnectionMonitor( 0 );
    8383}
     
    306306      peers[clientId].handshake->setUniqueID(clientId);
    307307      peers[clientId].userId = clientId;
    308       peers[clientId].isMasterServer = false;
     308      peers[clientId].nodeType = NET_CLIENT;
    309309    }
    310310    else
     
    321321      peers[clientId].connectionMonitor = new ConnectionMonitor( clientId );
    322322      peers[clientId].userId = clientId;
    323       peers[clientId].isMasterServer = false;
     323      peers[clientId].nodeType = NET_CLIENT;
    324324
    325325      PRINTF(0)("num sync: %d\n", synchronizeables.size());
     
    454454//               PRINTF(0)("remote host is a %i\n", it->second.handshake->getRemoteNodeType());
    455455              it->second.nodeType = it->second.handshake->getRemoteNodeType();
     456              this->networkMonitor->addNode(&it->second);
    456457
    457458              this->networkGameManager = NetworkGameManager::getInstance();
     
    719720          }
    720721
    721           if ( !peers[peer->second.userId].isMasterServer )
     722          if ( !peers[peer->second.userId].isMasterServer() )
    722723          {
    723724            offset += syncDataLength;
Note: See TracChangeset for help on using the changeset viewer.