Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 10, 2010, 2:19:44 PM (13 years ago)
Author:
smerkli
Message:

initiated WANDiscovery code, now implementing…

File:
1 copied

Legend:

Unmodified
Added
Removed
  • code/branches/masterserver/src/libraries/network/WANDiscovery.h

    r7629 r7630  
    2121 *
    2222 *   Author:
    23  *      Fabian 'x3n' Landau
     23 *      Fabian 'x3n' Landau (original)
    2424 *   Co-authors:
    25  *      ...
     25 *      Sandro 'smerkli' Merkli (copied and adapted to WAN)
    2626 *
    2727 */
    2828
    29 #ifndef LANDISCOVERY_H
    30 #define LANDISCOVERY_H
     29#ifndef WANDISCOVERY_H
     30#define WANDISCOVERY_H
    3131
    3232#include "NetworkPrereqs.h"
     
    4040{
    4141
    42   class _NetworkExport LANDiscovery
     42  class _NetworkExport WANDiscovery
    4343// tolua_end
    44     : public Singleton<LANDiscovery>
     44    : public Singleton<WANDiscovery>
    4545  { // tolua_export
    46     friend class Singleton<LANDiscovery>;
     46    friend class Singleton<WANDiscovery>;
    4747    public:
    48       LANDiscovery();
    49       ~LANDiscovery();
     48      WANDiscovery();
     49      ~WANDiscovery();
    5050      void discover(); // tolua_export
    5151      std::string getServerListItemName( unsigned int index ); // tolua_export
    5252      std::string getServerListItemIP( unsigned int index ); // tolua_export
    53       static LANDiscovery& getInstance(){ return Singleton<LANDiscovery>::getInstance(); } // tolua_export
     53      static WANDiscovery& getInstance(){ return Singleton<WANDiscovery>::getInstance(); } // tolua_export
    5454     
    5555    private:
    56       static LANDiscovery* singletonPtr_s;
     56      static WANDiscovery* singletonPtr_s;
    5757      ENetHost* host_;
    5858      std::vector<packet::ServerInformation> servers_;
     
    6161} // tolua_export
    6262
    63 #endif // LANDISCOVERY_H
     63#endif // WANDISCOVERY_H
Note: See TracChangeset for help on using the changeset viewer.