define.h

Go to the documentation of this file.
00001 /* ex: set tabstop=4 expandtab: */
00002 /*                                                                                                                      */
00003 /*  (c) 2004-2006 Iowa State University                                         */
00004 /*      see the LICENSE file in the top level directory         */
00005 /*                                                                                                                      */
00006 /* $Header: /afs/scl/project/cvsroot/fountain/source/common/define.h,v 1.20 2006/03/08 05:09:14 samm Exp $ */
00012 #ifndef FOUNTAIN_DEFINE_H__
00013 #define FOUNTAIN_DEFINE_H__
00014 
00015 // Get the header created by configure
00016 #ifdef HAVE_CONFIG_H
00017 #   ifndef CONFIG_H__
00018 #       define CONFIG_H__
00019 #       include <config.h>
00020 #   endif
00021 #endif
00022 
00023 #include <string>
00024 
00025 #if ENABLE_NODE_DAEMONS == 1
00026         //Fountain master & slave node stuff
00027 #       ifndef DEFAULT_NODE_CONFIG_FILE_PATH
00028                 const std::string DEFAULT_NODE_CONFIG_FILE                      = "fountainNode.cfg";
00029 #       else
00030                 const std::string DEFAULT_NODE_CONFIG_FILE                      = DEFAULT_NODE_CONFIG_FILE_PATH;
00031 #       endif
00032         const unsigned int  DEFAULT_MASTER_NODE_LISTEN_PORT             = 10000;
00033         const std::string       DEFAULT_MASTER_NODE_HOSTNAME            = "localhost";
00034         const std::string   DEFAULT_NODE_PROTOCOL                               = "HTTP";
00035 #endif
00036 
00037 //Fountain server stuff
00038 #ifndef DEFAULT_SERVER_CONFIG_FILE_PATH
00039         const std::string   DEFAULT_SERVER_CONFIG_FILE                  = "fountainServer.cfg";
00040 #else
00041         const std::string   DEFAULT_SERVER_CONFIG_FILE                  = DEFAULT_SERVER_CONFIG_FILE_PATH;
00042 #endif
00043 const std::string   DEFAULT_FOUNTAIN_SERVER_HOSTNAME            = "localhost";
00044 const unsigned int  DEFAULT_FOUNTAIN_ADMIN_PORT                         = 8900;
00045 const std::string   DEFAULT_FOUNTAIN_ADMIN_PROTOCOL                     = "sssRMAP";
00046 const unsigned int  DEFAULT_NODE_MONITOR_PORT                           = 9100;
00047 const std::string   DEFAULT_NODE_MONITOR_PROTOCOL                       = "sssRMAP";
00048 const unsigned int  DEFAULT_MINIMUM_NODE_UPDATE_INTERVAL        = 5; //seconds
00049 const unsigned int  DEFAULT_NODE_UPDATE_INTERVAL                        = 15; //seconds
00050 const unsigned int  DEFAULT_STALE_DATA_LIMIT                            = 30; //seconds
00051 const unsigned int  DEFAULT_CLIENT_TIMEOUT                                      = 10; //seconds
00052 #ifndef DEFAULT_NODELIST_FILE_PATH
00053         const std::string   DEFAULT_NODELIST_FILE                               = "fountainNodeList";
00054 #else
00055         const std::string   DEFAULT_NODELIST_FILE                               = DEFAULT_NODELIST_FILE_PATH;
00056 #endif
00057 
00058 //Version
00059 #ifdef PACKAGE_VERSION
00060         const std::string FOUNTAIN_VERSION_STRING = PACKAGE_VERSION; //from config.h
00061 #else
00062         const std::string FOUNTAIN_VERSION_STRING = "0.0.3";
00063 #endif
00064 
00065 #endif

Generated on Wed Mar 8 14:43:30 2006 for Fountain by  doxygen 1.4.6