Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9289 in orxonox.OLD


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

better readability

Location:
branches/proxy/src/lib/network/monitor
Files:
2 edited

Legend:

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

    r9288 r9289  
    186186void NetworkMonitor::debug()
    187187{
    188   PRINTF(0)("================================= Network Monitor ========\n");
    189   PRINTF(0)(" I am: %s\n", this->localNode->getPeerInfo()->getNodeTypeString().c_str());
    190   PRINTF(0)(" Total count of network connections: %i\n", this->playerNumber);
     188  PRINT(0)("================================= Network Monitor::debug() =====\n");
     189  PRINT(0)(" I am: %s\n", this->localNode->getPeerInfo()->getNodeTypeString().c_str());
     190  PRINT(0)(" Total count of network connections: %i\n", this->playerNumber);
    191191
    192192  std::list<NetworkNode*>::iterator it = this->nodeList.begin();
     
    196196  }
    197197
    198   PRINTF(0)("==========================================================\n");
    199 //   PRINTF(0)(" Currently got %i");
    200 }
    201 
     198  PRINT(0)("================================================================\n");
     199}
     200
  • branches/proxy/src/lib/network/monitor/network_node.cc

    r9288 r9289  
    130130  PRINT(0)(" = %s\n", this->peerInfo->getNodeTypeString().c_str());
    131131
    132   PRINT(0)("  master servers: %i\n", this->masterServerList.size());
     132  PRINT(0)("    master servers: %i\n", this->masterServerList.size());
    133133  std::list<PeerInfo*>::iterator it = this->masterServerList.begin();
    134134  for(; it != this->masterServerList.end(); it++)
    135135  {
    136     PRINT(0)("   ms, id: %i\n", (*it)->userId);
     136    PRINT(0)("     - ms, id: %i\n", (*it)->userId);
    137137  }
    138138
    139   PRINT(0)("  proxy servers: %i\n", this->proxyServerList.size());
     139  PRINT(0)("    proxy servers: %i\n", this->proxyServerList.size());
    140140  it = this->proxyServerList.begin();
    141141  for(; it != this->proxyServerList.end(); it++)
    142142  {
    143     PRINT(0)("   ps, id: %i\n", (*it)->userId);
     143    PRINT(0)("     - ps, id: %i\n", (*it)->userId);
    144144  }
    145145
    146   PRINT(0)("  clients: %i\n", this->clientList.size());
     146  PRINT(0)("    clients: %i\n", this->clientList.size());
    147147  it = this->clientList.begin();
    148148  for(; it != this->clientList.end(); it++)
    149149  {
    150     PRINT(0)("   client, id: %i\n", (*it)->userId);
     150    PRINT(0)("     - client, id: %i\n", (*it)->userId);
    151151  }
    152152}
Note: See TracChangeset for help on using the changeset viewer.