Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 14, 2006, 11:32:45 AM (18 years ago)
Author:
patrick
Message:

network monitor debug ok

File:
1 edited

Legend:

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

    r9284 r9288  
    119119  PRINTF(2)("Could not remove client from the list, very strange...");
    120120}
     121
     122
     123
     124/**
     125 * debug function
     126 * @param depth: depth in the tree
     127 */
     128void NetworkNode::debug(int depth)
     129{
     130  PRINT(0)(" = %s\n", this->peerInfo->getNodeTypeString().c_str());
     131
     132  PRINT(0)("  master servers: %i\n", this->masterServerList.size());
     133  std::list<PeerInfo*>::iterator it = this->masterServerList.begin();
     134  for(; it != this->masterServerList.end(); it++)
     135  {
     136    PRINT(0)("   ms, id: %i\n", (*it)->userId);
     137  }
     138
     139  PRINT(0)("  proxy servers: %i\n", this->proxyServerList.size());
     140  it = this->proxyServerList.begin();
     141  for(; it != this->proxyServerList.end(); it++)
     142  {
     143    PRINT(0)("   ps, id: %i\n", (*it)->userId);
     144  }
     145
     146  PRINT(0)("  clients: %i\n", this->clientList.size());
     147  it = this->clientList.begin();
     148  for(; it != this->clientList.end(); it++)
     149  {
     150    PRINT(0)("   client, id: %i\n", (*it)->userId);
     151  }
     152}
     153
Note: See TracChangeset for help on using the changeset viewer.