/home/docs/checkouts/readthedocs.org/user_builds/ratpac/checkouts/latest/src/io/include/RAT/OutNetProc.hh Source File

Ratpac-two: /home/docs/checkouts/readthedocs.org/user_builds/ratpac/checkouts/latest/src/io/include/RAT/OutNetProc.hh Source File
Ratpac-two
OutNetProc.hh
1 #ifndef __RAT_OutNetProc__
2 #define __RAT_OutNetProc__
3 
4 #include <TSocket.h>
5 
6 #include <RAT/Processor.hh>
7 #include <globals.hh>
8 #include <vector>
9 
10 namespace RAT {
11 
12 class OutNetProc : public Processor {
13  public:
14  OutNetProc();
15  virtual ~OutNetProc();
16 
17  virtual Processor::Result DSEvent(DS::Root *ds);
18 
19  // host - string, hostname and port in the form "hostname:port"
20  virtual void SetS(std::string param, std::string value);
21 
22  // versioncheck - int
23  // 0 = ignore SVN version of server
24  // 1 = verify SVN version of server matches client (default)
25  // Must set this option before host option, otherwise
26  // default is assumed
27  virtual void SetI(std::string param, int value);
28 
29  protected:
30  void PickServer(std::vector<std::string> &hostlist);
31  TSocket *Connect(std::string host, int port, double &load, int &svnVersion);
32 
33  TSocket *fSocket;
34  bool fVersionCheck;
35  std::vector<std::string> fHostlist;
36 };
37 
38 } // namespace RAT
39 
40 #endif
Definition: Root.hh:39
Definition: OutNetProc.hh:12
virtual void SetS(std::string param, std::string value)
Definition: OutNetProc.cc:30
virtual Processor::Result DSEvent(DS::Root *ds)
Definition: OutNetProc.cc:39
virtual void SetI(std::string param, int value)
Definition: OutNetProc.cc:20
Definition: Processor.hh:36
Result
Definition: Processor.hh:59
Definition: CCCrossSecMessenger.hh:29