- Timestamp:
- Nov 10, 2010, 2:19:44 PM (13 years ago)
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
code/branches/masterserver/src/libraries/network/WANDiscovery.h
r7629 r7630 21 21 * 22 22 * Author: 23 * Fabian 'x3n' Landau 23 * Fabian 'x3n' Landau (original) 24 24 * Co-authors: 25 * ...25 * Sandro 'smerkli' Merkli (copied and adapted to WAN) 26 26 * 27 27 */ 28 28 29 #ifndef LANDISCOVERY_H30 #define LANDISCOVERY_H29 #ifndef WANDISCOVERY_H 30 #define WANDISCOVERY_H 31 31 32 32 #include "NetworkPrereqs.h" … … 40 40 { 41 41 42 class _NetworkExport LANDiscovery42 class _NetworkExport WANDiscovery 43 43 // tolua_end 44 : public Singleton< LANDiscovery>44 : public Singleton<WANDiscovery> 45 45 { // tolua_export 46 friend class Singleton< LANDiscovery>;46 friend class Singleton<WANDiscovery>; 47 47 public: 48 LANDiscovery();49 ~ LANDiscovery();48 WANDiscovery(); 49 ~WANDiscovery(); 50 50 void discover(); // tolua_export 51 51 std::string getServerListItemName( unsigned int index ); // tolua_export 52 52 std::string getServerListItemIP( unsigned int index ); // tolua_export 53 static LANDiscovery& getInstance(){ return Singleton<LANDiscovery>::getInstance(); } // tolua_export53 static WANDiscovery& getInstance(){ return Singleton<WANDiscovery>::getInstance(); } // tolua_export 54 54 55 55 private: 56 static LANDiscovery* singletonPtr_s;56 static WANDiscovery* singletonPtr_s; 57 57 ENetHost* host_; 58 58 std::vector<packet::ServerInformation> servers_; … … 61 61 } // tolua_export 62 62 63 #endif // LANDISCOVERY_H63 #endif // WANDISCOVERY_H
Note: See TracChangeset
for help on using the changeset viewer.