Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 28, 2006, 10:53:46 PM (18 years ago)
Author:
patrick
Message:

removing the client from the network monitor does also work now

File:
1 edited

Legend:

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

    r9585 r9586  
    134134  pInfo->ip = IP(ipHost, 9999);
    135135  pInfo->nodeType = NET_CLIENT;
     136  pInfo->userId = newClientId;
    136137  netMon->addNode(pInfo);
    137138
     
    142143    // we now create the new player ship and stuff...
    143144    NetworkGameManager::getInstance()->signalNewPlayer(newClientId);
    144   }
    145   else if(SharedNetworkData::getInstance()->isProxyServerActive())
    146   {
    147 
    148145  }
    149146
     
    194191  assert( Converter::byteArrayToInt( data, &leaveClientId) == INTSIZE );
    195192
     193  // remove the node from the network monitor
     194  NetworkMonitor* netMon = SharedNetworkData::getInstance()->getNetworkMonitor();
     195  netMon->removeNode( netMon->getPeerByUserId(leaveClientId));
     196
    196197  PRINTF(0)("Got Signal: from %i new player left with userId: %i\n", senderId, leaveClientId);
    197198  // part for the master server
Note: See TracChangeset for help on using the changeset viewer.