Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Jul 23, 2006, 10:07:23 PM (18 years ago)
Author:
patrick
Message:

committing my weekends work: 2100 lines :D

  • proxy server now accepts and synchronizes clients like a master server
  • network manager got different network setup interface
  • network stream got different constructure scheme
  • permissions checking and algorithm extended and changed
  • starting ability to connect to multiple network nodes at the same time
  • some very much smaller changes here and there
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  
    1919#include "debug.h"
    2020
    21 #include "proxy/proxy_settings.h"
     21#include "proxy/network_settings.h"
    2222#include "shared_network_data.h"
    2323
     
    5757  {
    5858    // 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();
    6060    std::vector<IPaddress*>::iterator it = proxyList->begin();
    6161    // 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  
    5555    inline void removeMasterServer(NetworkNode* node, PeerInfo* pInfo) { node->removeMasterServer(pInfo); }
    5656
     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
    5763    /* slots admin and info interface */
    5864    /** @returns the total number of players in this game (including all proxy servers etc)*/
     
    6369    /** @param node node to be checked for slots @returns true if there are still free network slots available at this node */
    6470    inline bool gotFreeSlots(NetworkNode* node) { return (node->getPlayerNumber() < SharedNetworkData::getInstance()->getMaxPlayer())?true:false; }
    65     PeerInfo* getFirstChoiceProxy();
    66     PeerInfo* getSecondChoiceProxy();
     71
    6772    /** @returns true if the next client should be reconnected to some other proxy server with more connections */
    6873    inline bool isReconnectNextClient() { return (this->localNode->getPlayerNumber() >= SharedNetworkData::getInstance()->getMaxPlayer())?true:false; }
  • branches/proxy/src/lib/network/monitor/network_node.h

    r9347 r9396  
    3737    PeerInfo* getMasterServer(int index);
    3838
     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
    3949    /** @returns the number of players */
    4050    inline int getPlayerNumber() { return this->playerNumber; }
Note: See TracChangeset for help on using the changeset viewer.