3
A brief file description
5
@section license License
7
Licensed to the Apache Software Foundation (ASF) under one
8
or more contributor license agreements. See the NOTICE file
9
distributed with this work for additional information
10
regarding copyright ownership. The ASF licenses this file
11
to you under the Apache License, Version 2.0 (the
12
"License"); you may not use this file except in compliance
13
with the License. You may obtain a copy of the License at
15
http://www.apache.org/licenses/LICENSE-2.0
17
Unless required by applicable law or agreed to in writing, software
18
distributed under the License is distributed on an "AS IS" BASIS,
19
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20
See the License for the specific language governing permissions and
21
limitations under the License.
24
/****************************************************************************
28
This is the primary include file for the proxy cache system.
31
****************************************************************************/
37
#include "Regression.h"
38
#include "I_Version.h"
44
#define DOMAIN_NAME_MAX 255
45
#define PATH_NAME_MAX 511
47
#define ET_CACHE ET_CALL
49
// TODO: consolidate location of these defaults
50
#define DEFAULT_ROOT_DIRECTORY PREFIX
51
#define DEFAULT_LOCAL_STATE_DIRECTORY "var/trafficserver"
52
#define DEFAULT_SYSTEM_CONFIG_DIRECTORY "etc/trafficserver"
53
#define DEFAULT_LOG_DIRECTORY "var/log/trafficserver"
58
// Global Configuration
59
extern int accept_till_done;
60
//extern int ssl_accept_port_number;
61
//extern int ssl_enabled;
62
extern int http_accept_port_number;
63
extern int http_accept_file_descriptor;
64
extern int command_flag;
65
extern int auto_clear_hostdb_flag;
66
extern int auto_clear_cache_flag;
67
extern int lock_process;
69
extern int debug_level;
70
extern char cluster_host[DOMAIN_NAME_MAX + 1];
71
extern int cluster_port_number;
72
extern char proxy_name[DOMAIN_NAME_MAX + 1];
74
extern int remote_management_flag;
75
extern char management_directory[PATH_NAME_MAX + 1];
77
inkcoreapi extern int qt_accept_file_descriptor;
78
inkcoreapi extern int CacheClusteringEnabled;
82
// Debugging Configuration
83
extern char debug_host[DOMAIN_NAME_MAX + 1];
84
extern int debug_port;
86
// Default socket buffer limits
87
extern int default_sndbuf_size;
88
extern int default_rcvbuf_size;
94
void shutdown_system();
98
return (command_flag ? true : false);
101
void syslog_thr_init();
105
SERVER_PORT_DEFAULT = 0,
106
SERVER_PORT_COMPRESSED,
107
SERVER_PORT_BLIND_TUNNEL,
117
extern HttpPortEntry *http_port_attr_array;
119
extern Version version;
120
extern AppVersionInfo appVersionInfo;
122
struct HttpOtherPortEntry
127
/// Set if outbound connections (to origin servers) are transparent.
128
bool f_outbound_transparent;
129
/// Set if inbound connects (from client) are/were transparent.
130
bool f_inbound_transparent;
132
extern HttpOtherPortEntry *http_other_port_array;
135
#define TS_ReadConfigInteger REC_ReadConfigInteger
136
#define TS_ReadConfigFloat REC_ReadConfigFloat
137
#define TS_ReadConfigString REC_ReadConfigString
138
#define TS_EstablishStaticConfigInteger REC_EstablishStaticConfigInteger
139
#define TS_RegisterConfigUpdateFunc REC_RegisterConfigUpdateFunc
140
#define TS_ReadConfigStringAlloc REC_ReadConfigStringAlloc
141
#define TS_ConfigReadInteger REC_ConfigReadInteger
142
#define TS_ConfigReadString REC_ConfigReadString
145
#endif /* _Main_h_ */