SmartFoxServer 2X C++ API
HandshakeRequest.h
1 // ===================================================================
2 //
3 // Description
4 // Contains the definition of HandshakeRequest
5 //
6 // Revision history
7 // Date Description
8 // 30-Nov-2012 First version
9 //
10 // ===================================================================
11 #ifndef __HandshakeRequest__
12 #define __HandshakeRequest__
13 
14 #include "../Util/Common.h"
15 #include "BaseRequest.h"
16 
17 #include <boost/shared_ptr.hpp> // Boost Asio shared pointer
18 
19 #if defined(_MSC_VER)
20 #pragma warning(disable:4786) // STL library: disable warning 4786; this warning is generated due to a Microsoft bug
21 #endif
22 #include <string> // STL library: string object
23 using namespace std; // STL library: declare the STL namespace
24 
25 using namespace Sfs2X;
26 
27 namespace Sfs2X {
28 namespace Requests {
29 
33  class DLLImportExport HandshakeRequest : public BaseRequest
34  {
35  public:
36 
37  // -------------------------------------------------------------------
38  // Public methods
39  // -------------------------------------------------------------------
40 
41  HandshakeRequest(string apiVersion, string reconnectionToken, string clientDetails);
42  virtual ~HandshakeRequest();
43 
44  // -------------------------------------------------------------------
45  // Public members
46  // -------------------------------------------------------------------
47 
48  static boost::shared_ptr<string> KEY_SESSION_TOKEN;
49  static boost::shared_ptr<string> KEY_API;
50  static boost::shared_ptr<string> KEY_COMPRESSION_THRESHOLD;
51  static boost::shared_ptr<string> KEY_RECONNECTION_TOKEN;
52  static boost::shared_ptr<string> KEY_CLIENT_TYPE;
53  static boost::shared_ptr<string> KEY_MAX_MESSAGE_SIZE;
54 
55  protected:
56 
57  // -------------------------------------------------------------------
58  // Protected methods
59  // -------------------------------------------------------------------
60 
61  // -------------------------------------------------------------------
62  // Protected members
63  // -------------------------------------------------------------------
64 
65  private:
66 
67  // -------------------------------------------------------------------
68  // Private methods
69  // -------------------------------------------------------------------
70 
71  // -------------------------------------------------------------------
72  // Private members
73  // -------------------------------------------------------------------
74  };
75 
76 } // namespace Requests
77 } // namespace Sfs2X
78 
79 #endif
STL namespace.
This request is used by the API sub-system at connection time. It&#39;s not intended for other uses...
Definition: HandshakeRequest.h:33
Definition: SmartFox.cpp:24