Changeset 7765 for code/branches/presentation/src/libraries
- Timestamp:
- Dec 15, 2010, 3:27:22 PM (14 years ago)
- Location:
- code/branches/presentation/src/libraries/network
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation/src/libraries/network/MasterServer.cc
r7763 r7765 194 194 195 195 /* remove the server from the list it belongs to */ 196 this->mainlist.delServerBy Name( name );196 this->mainlist.delServerByAddress( name ); 197 197 198 198 /* tell the user */ -
code/branches/presentation/src/libraries/network/MasterServerComm.cc
r7763 r7765 31 31 namespace orxonox 32 32 { 33 ManageScopedSingleton(MasterServerComm, ScopeID::Root, true); 33 34 34 35 MasterServerComm::MasterServerComm() -
code/branches/presentation/src/libraries/network/MasterServerComm.h
r7763 r7765 36 36 #include <enet/enet.h> 37 37 38 // tolua_begin 38 39 namespace orxonox 39 40 { 40 class MasterServerComm 41 { 41 class _NetworkExport MasterServerComm 42 : public Singleton<MasterServerComm>, public OrxonoxClass 43 { // tolua_export 44 friend class Singleton<MasterServerComm>; 42 45 public: 43 46 /** constructor */ … … 89 92 int pollForReply( int (*callback)( char*, ENetEvent* ), int delayms ); 90 93 94 /** \return an instance of WANDiscovery 95 * 96 * Create and return an instance of WANDiscovery. 97 */ 98 static MasterServerComm& getInstance() { return Singleton<MasterServerComm>::getInstance(); } // tolua_export 99 91 100 private: 92 101 /** client handle */ … … 101 110 /** peer data holder */ 102 111 ENetPeer *peer; 103 };104 112 105 } 113 /** Singleton pointer */ 114 static MasterServerComm* singletonPtr_s; 115 }; // tolua_export 116 117 } // tolua_export 106 118 107 119 #endif /* MASTERSERVERCOMM_H */
Note: See TracChangeset
for help on using the changeset viewer.