Merge pull request #2317 from jwillemsen/jwi-deleteop
[ACE_TAO.git] / ACE / apps / JAWS / clients / WebSTONE / src / nsapi-includes / frame / conf.h
blobd42d7b20dd76892becb4b440640ff33e9ef5c046
1 /*
2 * Copyright (c) 1994, 1995. Netscape Communications Corporation. All
3 * rights reserved.
5 * Use of this software is governed by the terms of the license agreement for
6 * the Netscape Communications or Netscape Comemrce Server between the
7 * parties.
8 */
11 /* ------------------------------------------------------------------------ */
15 * conf.h: Deals with the server configuration file.
17 * Object configuration is an entirely different matter. This deals with
18 * things like what port the server runs on, how many children it spawns,
19 * and other server-related issues. Information related configuration is
20 * handled by the object conf.
22 * Rob McCool
26 #ifndef CONF_H
27 #define CONF_H
29 #ifdef XP_WIN32
30 #include <nt/ntconf.h>
31 #else
33 #include "netsite.h"
34 #include "frame/objset.h"
35 #include "base/daemon.h" /* daemon struct */
37 #include <pwd.h> /* struct passwd */
39 /* ------------------------------ Constants ------------------------------- */
42 /* The longest line in the configuration file */
43 #define CONF_MAXLEN 16384
45 #define LF 10
46 #define CR 13
49 #if defined(DAEMON_ANY)
50 #ifdef MCC_PROXY
51 #define DEFAULT_PORT 8080
52 #else
53 #define DEFAULT_PORT 80
54 #endif
55 #endif
57 #if defined(DAEMON_UNIX_POOL) || defined(DAEMON_UNIX_MOBRULE)
58 #define DEFAULT_POOL_MAX 50
59 #endif
62 /* ------------------------------- Globals -------------------------------- */
65 #ifndef CONF_C
68 * These server parameters are made global because they really don't
69 * belong anywhere else.
72 #if defined(DAEMON_ANY)
74 #include <sys/types.h>
76 /* What port we listen to */
77 extern int port;
79 /* What address to bind to */
80 extern char *addr;
82 /* User to run as */
83 extern struct passwd *userpw;
85 /* Directory to chroot to */
86 extern char *chr;
88 /* Where to log our pid to */
89 extern char *pidfn;
91 #if defined(DAEMON_UNIX_POOL) || defined(DAEMON_UNIX_MOBRULE)
92 /* The maximum number of processes to keep in the pool */
93 extern int pool_max;
94 /* The minimum number of processes to keep in the pool */
95 extern int pool_min;
96 /* The maximum number of requests each process should handle. -1=default */
97 extern int pool_life;
98 #endif
100 #ifdef NET_SSL
101 extern char *secure_keyfn;
102 extern char *secure_certfn;
103 extern char *secure_dongle;
104 extern int security_active;
105 extern int secure_auth;
106 extern int security_session_timeout;
107 #endif
109 #endif
111 /* The server's hostname as should be reported in self-ref URLs */
112 extern char *server_hostname;
114 /* The main object from which all are derived */
115 extern char *root_object;
117 /* The object set the administrator has asked us to load */
118 extern httpd_objset *std_os;
120 /* The main error log, where all errors are logged */
121 extern char *master_error_log;
123 /* The e-mail address of someone to mail upon catastrophic error */
124 extern char *admin_email;
126 #endif
129 /* ------------------------------ Prototypes ------------------------------ */
133 * conf_init reads the given configuration file and sets any non-default
134 * parameters to their given setting.
137 char *conf_init(char *cfn);
140 * conf_terminate frees any data the conf routines may be holding.
143 void conf_terminate();
147 * conf_vars2daemon transfers these globals to a daemon structure
149 void conf_vars2daemon(daemon_s *d);
151 #endif
152 #endif