Changeset 9282 in orxonox.OLD for branches/proxy/src/lib/network/monitor
- Timestamp:
- Jul 14, 2006, 12:06:30 AM (19 years ago)
- Location:
- branches/proxy/src/lib/network/monitor
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/lib/network/monitor/network_monitor.cc
r9281 r9282 80 80 81 81 82 void NetworkMonitor::addNode(PeerInfo* pInfo) 83 { 84 return; 85 86 if( pInfo->isClient()) 87 this->localNode->addClient(pInfo); 88 else if( pInfo->isProxyServer()) 89 this->localNode->addProxyServer(pInfo); 90 else if( pInfo->isMasterServer()) 91 this->localNode->addMasterServer(pInfo); 92 } 93 82 94 /** 83 95 * this displays the network monitor gui -
branches/proxy/src/lib/network/monitor/network_monitor.h
r9280 r9282 34 34 void removeNetworkNode(NetworkNode* node); 35 35 36 void addNode(PeerInfo* pInfo); 37 void addNode(NetworkNode* node, PeerInfo* pInfo) {} 38 39 /** adds to @param node a network node @param pInfo a new client */ 36 40 inline void addClient(NetworkNode* node, PeerInfo* pInfo) { node->addClient(pInfo); } 41 /** adds to @param node a network node @param pInfo a new proxy server */ 37 42 inline void addProxyServer(NetworkNode* node, PeerInfo* pInfo) { node->addProxyServer(pInfo); } 43 /** adds to @param node a network node @param pInfo a new master server*/ 38 44 inline void addMasterServer(NetworkNode* node, PeerInfo* pInfo) { node->addMasterServer(pInfo); } 39 45 … … 54 60 private: 55 61 NetworkStream* networkStream; //!< reference to the one networkstream of the network 62 NetworkNode* localNode; //!< reference to the local node 56 63 std::list<NetworkNode*> nodeList; //!< list of all network nodes 57 64
Note: See TracChangeset
for help on using the changeset viewer.