My Project
 All Classes Files Functions Variables Enumerations Enumerator Friends Macros Pages
WxSshClient.h
Go to the documentation of this file.
1 // $Id: WxSshClient.h,v 1.2 2009/08/17 21:18:32 eml Exp $
2 
3 #ifndef GCP_UTIL_WXSSHCLIENT_H
4 #define GCP_UTIL_WXSSHCLIENT_H
5 
15 #include "gcp/util/common/SshClient.h"
16 #include "gcp/util/common/Ports.h"
17 #include "gcp/util/common/WxData40m.h"
18 
19 #include <iostream>
20 
21 namespace gcp {
22  namespace util {
23 
25  public:
26 
30  WxSshClient(bool spawnThread,
31  std::string gateway="data.ovro.caltech.edu",
32  std::string host="cbassdaq.cm.pvt",
33  unsigned short port=Ports::wxPort("cbass"));
34 
38  virtual ~WxSshClient();
39 
40  // Initialize network container sizes and start up this thread
41  // if requested to
42 
43  void initialize(bool spawnThread);
44 
45  protected:
46 
47  WxData40m wxData_;
48  std::vector<unsigned char> bytes_;
49  virtual void readServerData(NetHandler& handler);
50  virtual void processServerData() {};
51 
52  }; // End class WxSshClient
53 
54  } // End namespace util
55 } // End namespace gcp
56 
57 
58 
59 #endif // End #ifndef GCP_UTIL_WXSSHCLIENT_H
Definition: SshClient.h:22
Definition: WxSshClient.h:24
Definition: NetHandler.h:16
virtual ~WxSshClient()
Definition: WxSshClient.cc:37
WxSshClient(bool spawnThread, std::string gateway="data.ovro.caltech.edu", std::string host="cbassdaq.cm.pvt", unsigned short port=Ports::wxPort("cbass"))
Definition: WxSshClient.cc:14
void initialize(bool spawnThread)
Definition: WxSshClient.cc:27
Definition: WxData40m.h:16