Changeset 9396 in orxonox.OLD for branches/proxy/src/lib/network/monitor
- Timestamp:
- Jul 23, 2006, 10:07:23 PM (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.cc
r9373 r9396 19 19 #include "debug.h" 20 20 21 #include "proxy/ proxy_settings.h"21 #include "proxy/network_settings.h" 22 22 #include "shared_network_data.h" 23 23 … … 57 57 { 58 58 // assuming that the config files are already read we get the proxy servers 59 std::vector<IPaddress*>* proxyList = ProxySettings::getInstance()->getProxyList();59 std::vector<IPaddress*>* proxyList = NetworkSettings::getInstance()->getProxyList(); 60 60 std::vector<IPaddress*>::iterator it = proxyList->begin(); 61 61 // create a peer info class and a network node class for each new proxy and add them to the passive list -
branches/proxy/src/lib/network/monitor/network_monitor.h
r9347 r9396 55 55 inline void removeMasterServer(NetworkNode* node, PeerInfo* pInfo) { node->removeMasterServer(pInfo); } 56 56 57 PeerInfo* getFirstChoiceProxy(); 58 PeerInfo* getSecondChoiceProxy(); 59 60 /** @returns the active proxy server list of the localnode */ 61 inline std::list<PeerInfo*> getActiveProxyServer() { return this->localNode->getActiveProxyServer(); } 62 57 63 /* slots admin and info interface */ 58 64 /** @returns the total number of players in this game (including all proxy servers etc)*/ … … 63 69 /** @param node node to be checked for slots @returns true if there are still free network slots available at this node */ 64 70 inline bool gotFreeSlots(NetworkNode* node) { return (node->getPlayerNumber() < SharedNetworkData::getInstance()->getMaxPlayer())?true:false; } 65 PeerInfo* getFirstChoiceProxy(); 66 PeerInfo* getSecondChoiceProxy(); 71 67 72 /** @returns true if the next client should be reconnected to some other proxy server with more connections */ 68 73 inline bool isReconnectNextClient() { return (this->localNode->getPlayerNumber() >= SharedNetworkData::getInstance()->getMaxPlayer())?true:false; } -
branches/proxy/src/lib/network/monitor/network_node.h
r9347 r9396 37 37 PeerInfo* getMasterServer(int index); 38 38 39 /** @returns the master server list */ 40 inline std::list<PeerInfo*> getMasterServer() { return this->masterServerList; } 41 /** @returns the active proxy server list */ 42 inline std::list<PeerInfo*> getActiveProxyServer() { return this->activeProxyServerList; } 43 /** @returns the passive proxy server list */ 44 inline std::list<PeerInfo*> getPassiveProxyServer() { return this->passiveProxyServerList; } 45 /** @returns the client list */ 46 inline std::list<PeerInfo*> getClient() { return this->clientList; } 47 48 39 49 /** @returns the number of players */ 40 50 inline int getPlayerNumber() { return this->playerNumber; }
Note: See TracChangeset
for help on using the changeset viewer.