SmartFoxServer 2X C++ API
PingPongRequest.h
1 // ===================================================================
2 //
3 // Description
4 // Contains the definition of PingPongRequest
5 //
6 // Revision history
7 // Date Description
8 // 30-Nov-2012 First version
9 //
10 // ===================================================================
11 #ifndef __PingPongRequest__
12 #define __PingPongRequest__
13 
14 #include "../Util/Common.h"
15 #include "BaseRequest.h"
16 
17 #include <boost/shared_ptr.hpp> // Boost Asio shared pointer
18 
19 namespace Sfs2X {
20 namespace Requests {
21 
25  class DLLImportExport PingPongRequest : public BaseRequest
26  {
27  public:
28 
29  // -------------------------------------------------------------------
30  // Public methods
31  // -------------------------------------------------------------------
32  PingPongRequest ();
33  virtual ~PingPongRequest();
34 
35  void Validate(boost::shared_ptr<SmartFox> sfs);
36 
37  void Execute (boost::shared_ptr<SmartFox> sfs);
38 
39  // -------------------------------------------------------------------
40  // Public members
41  // -------------------------------------------------------------------
42 
43  protected:
44 
45  // -------------------------------------------------------------------
46  // Protected methods
47  // -------------------------------------------------------------------
48 
49  // -------------------------------------------------------------------
50  // Protected members
51  // -------------------------------------------------------------------
52 
53  private:
54 
55  // -------------------------------------------------------------------
56  // Private methods
57  // -------------------------------------------------------------------
58 
59  // -------------------------------------------------------------------
60  // Private members
61  // -------------------------------------------------------------------
62  };
63 
64 } // namespace Requests
65 } // namespace Sfs2X
66 
67 #endif
68 
Sends a ping-pong request in order to measure the current lag
Definition: PingPongRequest.h:25
Definition: SmartFox.cpp:24