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/monitor/network_monitor.cc

    r9560 r9586  
    176176
    177177
     178
     179/**
     180 * removes a node from the network monitor
     181 * @param pInfo the node to remove
     182 */
     183void NetworkMonitor::removeNode(PeerInfo* pInfo)
     184{
     185  this->removeNode(this->localNode, pInfo);
     186}
     187
     188
     189/**
     190 * removes the network node
     191 * @param node the network node where the PeerInfo node is connected to
     192 * @param pInfo the PeerInfo to remove
     193 */
     194void NetworkMonitor::removeNode(NetworkNode* node, PeerInfo* pInfo)
     195{
     196  if( node == NULL || pInfo == NULL)
     197    return;
     198
     199  if( pInfo->isClient())
     200    node->removeClient(pInfo);
     201  else if( pInfo->isProxyServerActive())
     202    node->removeActiveProxyServer(pInfo);
     203  else if( pInfo->isMasterServer())
     204    node->removeMasterServer(pInfo);
     205}
     206
     207
    178208/**
    179209 * @returns the proxy server of the first choice
Note: See TracChangeset for help on using the changeset viewer.