--- projects/cms/source/host/c++/Config.h 2001/03/01 20:10:42 1.4 +++ projects/cms/source/host/c++/Config.h 2001/03/27 00:06:11 1.6 @@ -20,38 +20,40 @@ class Config { SmallNet * getSmallNet(){ return net; }; // returns a pointer to the smallnet class string getFilterName(){ return UDPFilterName; }; int getFilterPort(){ return TCPFilterPort; }; + string getFQDN(){ return fQDN; }; // inline. Returns this host name. + int chatHeartBeat(); // public variables private: // private methods - int loadConfig(); // do the chat dialog - int establishHeartbeat(); // tell smallnet to make a connection - int chatHeartbeat(); // send the relevant commands to the heartbeat - int destroyHeartbeat(); // tell smallnet to close a connection - int establishConfig(); // tell smallnet to make a connection to the config manager - int chatConfig(); // send the relevant commands to get the config - int destroyConfig(); // tell smallnet to close the connection to the config manager + int loadConfig(); // do the chat dialog + int establishHeartbeat(); // tell smallnet to make a connection + int chatHeartbeat(); // send the relevant commands to the heartbeat + int destroyHeartbeat(); // tell smallnet to close a connection + int establishConfig(); // tell smallnet to make a connection to the config manager + int chatConfig(); // send the relevant commands to get the config + int destroyConfig(); // tell smallnet to close the connection to the config manager // private (global) variables int MAX_CONNECTION_ATTEMPTS; // how many times should it try? int configConnectionRetryTime; // how long to wait before retrying a connection to the - // config manager if a connection cannot be established + // config manager if a connection cannot be established string configName; // the name of the server which will return our config int configPort; // the port on the server which will return our config int UDPFilterPort; // the port number of our assigned filter - string UDPFilterName; // the name of our assigned filter + string UDPFilterName; // the name of our assigned filter int TCPFilterPort; // the tcp port for heartbeats bool configChanged; // has the config changed since we last loaded it? - string lastModified; // saves the last modifed long integer + string lastModified; // saves the last modifed long integer string fileList; // saves the last modifed file list string fQDN; int numProperties; // the number of properties which this host wants - string propertyNames[20]; // an array of strings which corrisponds to... - string propertyValues[20]; // these values + string propertyNames[20]; // an array of strings which corrisponds to... + string propertyValues[20]; // these values SmallNet * net; // interface onto SmallNet - int debug; // print debug info? + int debug; // print debug info?