Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9286 in orxonox.OLD for branches/proxy/src/lib/network/monitor


Ignore:
Timestamp:
Jul 14, 2006, 10:59:33 AM (18 years ago)
Author:
patrick
Message:

first network monitor debug session

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

Legend:

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

    r9285 r9286  
    155155    this->playerNumber += (*it)->getPlayerNumber();
    156156  }
     157
     158  this->debug();
    157159}
    158160
    159 
     161/**
     162 * prints out the debug informations
     163 */
    160164void NetworkMonitor::debug()
    161165{
    162166  PRINTF(0)("================================= Network Monitor ========\n");
     167  PRINTF(0)(" I am: %s\n", this->localNode->getPeerInfo()->getNodeTypeString().c_str());
    163168  PRINTF(0)(" Total count of network nodes: %i\n", this->playerNumber);
    164 
     169  PRINTF(0)("==========================================================\n");
     170//   PRINTF(0)(" Currently got %i");
    165171}
    166172
  • branches/proxy/src/lib/network/monitor/network_node.h

    r9284 r9286  
    3434    /** @returns the node type of this node */
    3535    inline int getNodeType() { return this->peerInfo->nodeType; }
     36    /** @returns the peer info of this node */
     37    inline PeerInfo* getPeerInfo() { return this->peerInfo; }
    3638
    3739
Note: See TracChangeset for help on using the changeset viewer.