My Project
 All Classes Files Functions Variables Enumerations Enumerator Friends Macros Pages
WxClient.h
Go to the documentation of this file.
1 #ifndef GCP_UTIL_WXCLIENT_H
2 #define GCP_UTIL_WXCLIENT_H
3 
11 #include "gcp/util/common/Client.h"
12 #include "gcp/util/common/Ports.h"
13 #include "gcp/util/common/WxData.h"
14 
15 #include <vector>
16 #include <string>
17 
18 namespace gcp {
19  namespace util {
20 
21  class WxClient : public Client {
22  public:
23 
27  WxClient(bool spawnThread, std::string host="sptcontrol",
28  unsigned port=Ports::wxPort("spt"));
29 
33  virtual ~WxClient();
34 
35  protected:
36 
37  WxData wxData_;
38  std::vector<unsigned char> bytes_;
39  virtual void readServerData(NetHandler& handler);
40  virtual void processServerData() {};
41 
42  }; // End class WxClient
43 
44  } // End namespace util
45 } // End namespace gcp
46 
47 
48 #endif // End #ifndef GCP_UTIL_WXCLIENT_H
Definition: WxClient.h:21
Definition: NetHandler.h:16
WxClient(bool spawnThread, std::string host="sptcontrol", unsigned port=Ports::wxPort("spt"))
Definition: WxClient.cc:12
Definition: WxData.h:16
Definition: Client.h:21
virtual ~WxClient()
Definition: WxClient.cc:24