Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Jul 14, 2006, 12:19:31 PM (18 years ago)
Author:
patrick
Message:

working with max connections

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

Legend:

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

    r9289 r9290  
    9999    this->localNode->addClient(pInfo);
    100100  else if( pInfo->isProxyServer())
     101  {
    101102    this->localNode->addProxyServer(pInfo);
     103    // create a new node, since a proxy can connect clients again
     104    NetworkNode* node = new NetworkNode(pInfo);
     105    this->nodeList.push_back(node);
     106  }
    102107  else if( pInfo->isMasterServer())
     108  {
    103109    this->localNode->addMasterServer(pInfo);
     110  }
    104111}
    105112
  • branches/proxy/src/lib/network/monitor/network_monitor.h

    r9287 r9290  
    5252    inline int getPlayerNumber() { return this->playerNumber; }
    5353
     54    /** @returns true if there are still free network slots available */
     55    inline bool gotFreeSlots() { return (this->playerNumber < NET_MAX_CONNECTIONS)?true:false; }
     56    void getServerWithFreeSlots() { }
     57
    5458
    5559    void showGUI();
Note: See TracChangeset for help on using the changeset viewer.