Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9267 in orxonox.OLD for branches


Ignore:
Timestamp:
Jul 13, 2006, 11:15:57 AM (18 years ago)
Author:
patrick
Message:

even more simple intreface

File:
1 edited

Legend:

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

    r9266 r9267  
    8989 */
    9090void NetworkMonitor::removeProxyServer(PeerInfo* node)
    91 {}
     91{
     92  std::list<PeerInfo*>::iterator it = this->proxyServerList.begin();
     93  for(; it != this->proxyServerList.end(); it++)
     94  {
     95    if( *it == node)
     96    {
     97      this->proxyServerList.erase(it);
     98      return;
     99    }
     100  }
     101
     102  PRINTF(2)("Could not remove proxy server from the list, very strange...");
     103}
    92104
    93105/**
     
    95107 */
    96108void NetworkMonitor::removeMasterServer(PeerInfo* node)
    97 {}
     109{
     110  std::list<PeerInfo*>::iterator it = this->masterServerList.begin();
     111  for(; it != this->masterServerList.end(); it++)
     112  {
     113    if( *it == node)
     114    {
     115      this->masterServerList.erase(it);
     116      return;
     117    }
     118  }
     119
     120  PRINTF(2)("Could not remove client from the list, very strange...");
     121}
    98122
    99123
Note: See TracChangeset for help on using the changeset viewer.