Changeset 9641 in orxonox.OLD for branches/proxy
- Timestamp:
- Jul 31, 2006, 10:06:17 AM (18 years ago)
- Location:
- branches/proxy/src/lib/network/monitor
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/lib/network/monitor/network_monitor.h
r9639 r9641 64 64 65 65 /** @returns the active proxy server list of the localnode */ 66 inline std::list<NetworkNode*> getActiveProxyServer () const { return this->localNode->getActiveProxyServer(); }66 inline std::list<NetworkNode*> getActiveProxyServers() const { return this->localNode->getActiveProxyServers(); } 67 67 68 68 /* slots admin and info interface */ -
branches/proxy/src/lib/network/monitor/network_node.cc
r9639 r9641 418 418 if( !this->masterServerList.empty()) 419 419 { 420 // PRINT(0)("%s + master servers: %i\n", indent, this->masterServerList.size());421 420 it = this->masterServerList.begin(); 422 421 423 422 for(; it != this->masterServerList.end(); it++) 424 423 { 425 // IP* ip = &(*it)->getPeerInfo()->ip;426 // PRINT(0)("%s - ms, id: %i (%s)\n", indent, (*it)->getPeerInfo()->userId, ip->ipString().c_str());427 424 (*it)->debug(depth+1); 428 425 } … … 431 428 if( !this->activeProxyServerList.empty()) 432 429 { 433 // PRINT(0)("%s + proxy servers active: %i\n", indent, this->activeProxyServerList.size());434 430 it = this->activeProxyServerList.begin(); 435 431 436 432 for(; it != this->activeProxyServerList.end(); it++) 437 433 { 438 // IP* ip = &(*it)->getPeerInfo()->ip;439 // PRINT(0)("%s - ps-a, id: %i (%s)\n", indent, (*it)->getPeerInfo()->userId, ip->ipString().c_str());440 434 (*it)->debug(depth+1); 441 435 } … … 445 439 if( !this->passiveProxyServerList.empty()) 446 440 { 447 // PRINT(0)("%s proxy servers passive: %i\n", indent, this->passiveProxyServerList.size());448 441 it = this->passiveProxyServerList.begin(); 449 442 450 443 for(; it != this->passiveProxyServerList.end(); it++) 451 444 { 452 // IP* ip = &(*it)->getPeerInfo()->ip;453 // PRINT(0)("%s - ps-p, id: %i (%s)\n", indent, (*it)->getPeerInfo()->userId, ip->ipString().c_str());454 445 (*it)->debug(depth+1); 455 446 } … … 458 449 if( !this->clientList.empty()) 459 450 { 460 // PRINT(0)("%s clients: %i\n", indent, this->clientList.size());461 451 it = this->clientList.begin(); 462 452 463 453 for(; it != this->clientList.end(); it++) 464 454 { 465 // IP* ip = &(*it)->getPeerInfo()->ip;466 // PRINT(0)("%s - client, id: %i (%s)\n", indent, (*it)->getPeerInfo()->userId, ip->ipString().c_str());467 455 (*it)->debug(depth+1); 468 456 } -
branches/proxy/src/lib/network/monitor/network_node.h
r9639 r9641 43 43 44 44 /** @returns the master server list */ 45 inline std::list<NetworkNode*> getMasterServer () const { return this->masterServerList; }45 inline std::list<NetworkNode*> getMasterServers() const { return this->masterServerList; } 46 46 /** @returns the active proxy server list */ 47 inline std::list<NetworkNode*> getActiveProxyServer () const { return this->activeProxyServerList; }47 inline std::list<NetworkNode*> getActiveProxyServers() const { return this->activeProxyServerList; } 48 48 /** @returns the passive proxy server list */ 49 inline std::list<NetworkNode*> getPassiveProxyServer () const { return this->passiveProxyServerList; }49 inline std::list<NetworkNode*> getPassiveProxyServers() const { return this->passiveProxyServerList; } 50 50 /** @returns the client list */ 51 inline std::list<NetworkNode*> getClient () const { return this->clientList; }51 inline std::list<NetworkNode*> getClients() const { return this->clientList; } 52 52 53 53 PeerInfo* getPeerByUserId( int userId);
Note: See TracChangeset
for help on using the changeset viewer.