Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 21, 2011, 4:01:44 PM (13 years ago)
Author:
smerkli
Message:

ms-delserver command implemented to kick servers from the master server list

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/masterserver2/src/libraries/network/ServerList.h

    r8202 r8280  
    3737namespace orxonox
    3838{
     39  /* HELPER STRUCTURES */
    3940  struct ServerListElem
    4041  {
     
    4546    ENetPeer* peer;
    4647  };
     48
     49  struct ServerListSearchResult
     50  {
     51    /* list element found */
     52    ServerListElem result;
     53
     54    /* successful search */
     55    bool success;
     56  };
     57
     58
     59
     60
    4761
    4862  /** This class is keeps a list of game servers
     
    7993
    8094
    81       /* SORTING (to be implemented) */
    8295
     96
     97      /* SEARCHING */
     98      /* \param address The address of the server that is to be
     99       *  found
     100       * \return A struct containing a result of the search and a boolean
     101       *  that is only true if the search was successful
     102       *
     103       * Find and return the list handle of a given address.
     104       */
     105      ServerListSearchResult
     106      findServerByAddress( std::string address );
     107
     108
     109      /* \param name The name of the server that is to be
     110       *  found
     111       * \return The struct containing the list entry of the server
     112       *
     113       * Find and return the list handle of a given name.
     114       */
     115      ServerListSearchResult
     116      findServerByName( std::string name );
     117
     118
     119      /* SORTING */
    83120      /** sort by name  */
    84121      void sortByName();
Note: See TracChangeset for help on using the changeset viewer.