ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/host/c++/Config.h
(Generate patch)

Comparing projects/cms/source/host/c++/Config.h (file contents):
Revision 1.1 by ab11, Wed Jan 24 19:32:43 2001 UTC vs.
Revision 1.4 by ab11, Thu Mar 1 20:10:42 2001 UTC

# Line 1 | Line 1
1   #include <iostream>
2   #include <string>
3   #include <unistd.h> // linux header for the sleep function
4 < #include "SmallNet.h"
4 > #ifndef  SMALLNET_H             /* Has the file been INCLUDE'd already? */
5 >    #define  SMALLNET_H  yes
6 >    #include "SmallNet.h"
7 > #endif
8  
9   using std::string;
10  
# Line 9 | Line 12 | class Config {
12          
13          public:
14          // public methods
15 <        Config( string serverName, int serverPort );
15 >        Config( string serverName, int serverPort, int printDebug);
16          int getUDPFilterPort(){ return UDPFilterPort; }; // inline function
17          string getUDPFilterName(){ return UDPFilterName; }; // inline
18 <        int getProperty( string propertyName );
18 >        int getIntProperty( string propertyName );
19 >        string getStrProperty( string propertyName );
20 >        SmallNet * getSmallNet(){ return net; };   // returns a pointer to the smallnet class
21 >        string getFilterName(){ return UDPFilterName; };
22 >        int getFilterPort(){ return TCPFilterPort; };
23          
24          // public variables
25          
# Line 28 | Line 35 | class Config {
35          
36          
37          // private (global) variables
38 +        int MAX_CONNECTION_ATTEMPTS;            // how many times should it try?
39          int configConnectionRetryTime;          // how long to wait before retrying a connection to the
40                                                  // config manager if a connection cannot be established
41          string configName;                      // the name of the server which will return our config
# Line 38 | Line 46 | class Config {
46          bool configChanged;                     // has the config changed since we last loaded it?
47          string lastModified;                    // saves the last modifed long integer
48          string fileList;                        // saves the last modifed file list
49 +        string fQDN;
50          int numProperties;                      // the number of properties which this host wants
51          string propertyNames[20];               // an array of strings which corrisponds to...
52          string propertyValues[20];              // these values
53 <        SmallNet net;                           // interface onto SmallNet
53 >        SmallNet * net;                         // interface onto SmallNet
54 >        int debug;                              // print debug info?
55          
56          
57          

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines