- Timestamp:
- Apr 21, 2011, 4:01:44 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/masterserver2/src/libraries/network/ServerList.h
r8202 r8280 37 37 namespace orxonox 38 38 { 39 /* HELPER STRUCTURES */ 39 40 struct ServerListElem 40 41 { … … 45 46 ENetPeer* peer; 46 47 }; 48 49 struct ServerListSearchResult 50 { 51 /* list element found */ 52 ServerListElem result; 53 54 /* successful search */ 55 bool success; 56 }; 57 58 59 60 47 61 48 62 /** This class is keeps a list of game servers … … 79 93 80 94 81 /* SORTING (to be implemented) */82 95 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 */ 83 120 /** sort by name */ 84 121 void sortByName();
Note: See TracChangeset
for help on using the changeset viewer.