~ps10gel/ubuntu/xenial/trafficserver/6.2.0

« back to all changes in this revision

Viewing changes to proxy/NTDefs.h

  • Committer: Bazaar Package Importer
  • Author(s): Arno Toell
  • Date: 2011-01-13 11:49:18 UTC
  • Revision ID: james.westby@ubuntu.com-20110113114918-vu422h8dknrgkj15
Tags: upstream-2.1.5-unstable
ImportĀ upstreamĀ versionĀ 2.1.5-unstable

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/** @file
 
2
 
 
3
  A brief file description
 
4
 
 
5
  @section license License
 
6
 
 
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
 
14
 
 
15
      http://www.apache.org/licenses/LICENSE-2.0
 
16
 
 
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.
 
22
 */
 
23
 
 
24
#ifndef _NT_DEFS_H_
 
25
#define _NT_DEFS_H_
 
26
 
 
27
#ifndef BUILD_MACHINE
 
28
#define BUILD_MACHINE "NT"
 
29
#endif
 
30
 
 
31
#ifndef BUILD_PERSON
 
32
#define BUILD_PERSON  "BOBCAT"
 
33
#endif
 
34
 
 
35
#define COMPANY_REG_KEY "SOFTWARE\\Inktomi"
 
36
#define TS_ROOT_REG_KEY "TrafficServer\\5.2"
 
37
#define TS_BASE_REG_KEY "TSBase"
 
38
#define TS_CATEGORY_MSG_KEY "CategoryMessageFile"
 
39
#define TS_CATEGORY_COUNT_KEY "CategoryCount"
 
40
 
 
41
#define TCP_SRVS_REG_KEY "SYSTEM\\CurrentControlSet\\Services\\Tcpip\\Parameters"
 
42
#define MAX_USER_PORT "MaxUserPort"
 
43
#define OPTIMAL_MAX_USER_PORT 0xfffe
 
44
 
 
45
#define TCP_WINDOW_SIZE "TcpWindowSize"
 
46
#define OPTIMAL_TCP_WINDOW_SZ 0x4470
 
47
 
 
48
#define TCP_TIMED_WAIT_DELAY "TcpTimedWaitDelay"
 
49
#define OPTIMAL_TCP_TIMED_WAIT_DELAY 0xb4
 
50
 
 
51
 
 
52
// If this location is changed, then perfdll/TrafficServer.reg or the
 
53
// install shield editor needs to be changed as well.
 
54
#define TS_PERFMON_SVC_REG_KEY "SYSTEM\\CurrentControlSet\\Services\\TrafficServer\\Performance"
 
55
#define TS_EVENT_LOG_SRC_KEY "SYSTEM\\CurrentControlSet\\Services\\EventLog\\Application\\TrafficServer"
 
56
#define TS_EVENT_LOG_MESSAGE_FILE "%SystemRoot%\\System32\\TSMsgs.DLL"
 
57
 
 
58
#define TS_EXIT_STR "Inktomi Traffic Server Process %d Please Exit"
 
59
#define TS_ABORT_STR "Inktomi Traffic Server Process %d Please Abort"
 
60
#define TS_DUMP_STATE_STR "Inktomi Traffic Server Process %d Please Dump State"
 
61
 
 
62
//***************** shared between manager and server *****************//
 
63
#define STR_IOC_PORT        "IOCPort"
 
64
#define STR_PIPE_NAME       "\\\\.\\pipe\\INKTrafficServer"
 
65
#define STR_MANAGER_ID      "ManagerProcId"
 
66
#define STR_FDLIST_SZ       "FDListSize"
 
67
 
 
68
#define ENV_BLOCK_SZ        256
 
69
#define NPIPE_BUFFER_SZ     (MAX_PROXY_SERVER_PORTS+1)*1024
 
70
#define DEF_WAIT_FOR_PIPE   10*1000     // 10 Sec
 
71
//********************************************************************//
 
72
 
 
73
#ifdef MGMT_SERVICE
 
74
 
 
75
#define TS_MGR_SERVICE_NAME         "InktomiTrafficManager"
 
76
#define TS_MGR_SERVICE_DISPLAY_NAME "Inktomi Traffic Manager"
 
77
 
 
78
// These are the attributes for creating the manager service.
 
79
//
 
80
// LPCTSTR lpServiceName = TS_MGR_SERVICE_NAME          // pointer to name of service to start
 
81
// LPCTSTR lpDisplayName = TS_MGR_SERVICE_DISPLAY_NAME  // pointer to display name
 
82
// DWORD dwDesiredAccess = SERVICE_ALL_ACCESS           // type of access to service
 
83
// DWORD dwServiceType   = SERVICE_WIN32_OWN_PROCESS    // type of service
 
84
// DWORD dwStartType     = SERVICE_AUTO_START           // when to start service
 
85
// DWORD dwErrorControl  = SERVICE_ERROR_NORMAL         // severity if service fails to start
 
86
 
 
87
#endif // MGMT_SERVICE
 
88
 
 
89
#ifdef COP_SERVICE
 
90
 
 
91
#define TS_COP_SERVICE_NAME         "InktomiTrafficCop"
 
92
#define TS_COP_SERVICE_DISPLAY_NAME "Inktomi Traffic Cop"
 
93
#define TS_COP_SERVICE_DESCRIPTION  "Monitors the health of Traffic Server and Traffic Manager"
 
94
 
 
95
// These are the attributes for creating the cop service.
 
96
//
 
97
// LPCTSTR lpServiceName = TS_COP_SERVICE_NAME          // pointer to name of service to start
 
98
// LPCTSTR lpDisplayName = TS_COP_SERVICE_DISPLAY_NAME  // pointer to display name
 
99
// DWORD dwDesiredAccess = SERVICE_ALL_ACCESS           // type of access to service
 
100
// DWORD dwServiceType   = SERVICE_WIN32_OWN_PROCESS    // type of service
 
101
// DWORD dwStartType     = SERVICE_AUTO_START           // when to start service
 
102
// DWORD dwErrorControl  = SERVICE_ERROR_NORMAL         // severity if service fails to start
 
103
 
 
104
#endif // COP_SERVICE
 
105
 
 
106
#endif