• Main Page
  • Related Pages
  • Namespaces
  • Data Structures
  • Files
  • File List
  • Globals

Main.h

Go to the documentation of this file.
00001 /** @file
00002 
00003   This is the primary include file for the proxy cache system.
00004 
00005   @section license License
00006 
00007   Licensed to the Apache Software Foundation (ASF) under one
00008   or more contributor license agreements.  See the NOTICE file
00009   distributed with this work for additional information
00010   regarding copyright ownership.  The ASF licenses this file
00011   to you under the Apache License, Version 2.0 (the
00012   "License"); you may not use this file except in compliance
00013   with the License.  You may obtain a copy of the License at
00014 
00015       http://www.apache.org/licenses/LICENSE-2.0
00016 
00017   Unless required by applicable law or agreed to in writing, software
00018   distributed under the License is distributed on an "AS IS" BASIS,
00019   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00020   See the License for the specific language governing permissions and
00021   limitations under the License.
00022  */
00023 #ifndef _Main_h_
00024 #define _Main_h_
00025 
00026 #include <ts/ink_defs.h>
00027 #include "libts.h"
00028 #include "Regression.h"
00029 #include "I_Version.h"
00030 
00031 
00032 //
00033 // Constants
00034 //
00035 #define ET_CACHE ET_CALL
00036 
00037 // TODO: consolidate location of these defaults
00038 #define DEFAULT_ROOT_DIRECTORY            PREFIX
00039 #define DEFAULT_LOCAL_STATE_DIRECTORY     "var/trafficserver"
00040 #define DEFAULT_SYSTEM_CONFIG_DIRECTORY   "etc/trafficserver"
00041 #define DEFAULT_LOG_DIRECTORY             "var/log/trafficserver"
00042 
00043 //
00044 // Global Data
00045 //
00046 // Global Configuration
00047 extern int accept_till_done;
00048 extern int http_accept_file_descriptor;
00049 extern int command_flag;
00050 extern int auto_clear_hostdb_flag;
00051 extern int auto_clear_cache_flag;
00052 extern int fds_limit;
00053 extern int debug_level;
00054 extern char cluster_host[MAXDNAME + 1];
00055 extern int cluster_port_number;
00056 
00057 extern int remote_management_flag;
00058 
00059 inkcoreapi extern int qt_accept_file_descriptor;
00060 inkcoreapi extern int cache_clustering_enabled;
00061 
00062 // Debugging Configuration
00063 extern char debug_host[MAXDNAME + 1];
00064 extern int debug_port;
00065 
00066 // Default socket buffer limits
00067 extern int default_sndbuf_size;
00068 extern int default_rcvbuf_size;
00069 
00070 //
00071 // Functions
00072 //
00073 void shutdown_system();
00074 inline bool
00075 maintainance_mode()
00076 {
00077   return (command_flag ? true : false);
00078 }
00079 
00080 extern AppVersionInfo appVersionInfo;
00081 
00082 #endif /* _Main_h_ */

Generated by  doxygen 1.7.1