(C++) WtBroadcastServerClient

January 25, 2018 · View on GitHub

 

 

 

 

 

(C++) Wt WtBroadcastServerClient

 

WtBroadcastServerClient has been abandoned, because it served two tasks. It is split up into and replaced by WtServerPusherClient and WtTimedServerPusherClient.

 

 

 

 

 

Technical facts

 

Application type(s)

Operating system(s) or programming environment(s)

IDE(s):

Project type:

C++ standard:

Compiler(s):

Libraries used:

  • Boost Boost: version 1.42
  • STL STL: GNU ISO C++ Library, version 4.5.2
  • Wt Wt: version 3.1.9

 

 

 

 

 

wtbroadcastserverclient.cpp

 


 

 

 

 

 

wtbroadcastserverclient.h

 


//--------------------------------------------------------------------------- #ifndef WTBROADCASTSERVERCLIENT_H #define WTBROADCASTSERVERCLIENT_H //--------------------------------------------------------------------------- ///WtBroadcastServerClient is a client responding to WtBroadcastServer ///and to be used as a base class struct WtBroadcastServerClient {   virtual ~WtBroadcastServerClient();   ///Get the version of this class   static const std::string GetVersion();   ///Get the version history of this class   static const std::vector<std::string> GetVersionHistory();   ///UpdatePage is called when the WtBroadcastServer triggers an update by timer   virtual void UpdatePage() = 0;   protected:   ///WtBroadcastServerClient constructor is protected   ///because it is to be used as a base class   WtBroadcastServerClient();   private:   ///Respond to the server   void OnServer(); }; //--------------------------------------------------------------------------- #endif // WTBROADCASTSERVERCLIENT_H