]> git.sur5r.net Git - openldap/blob - contrib/tweb/server.h
* configure.in: add tcl8.2 to list of tcl libs to search for, also added new MOD_TCL_LIB
[openldap] / contrib / tweb / server.h
1 /*_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
2 *                                                                          *
3 * server.h...                                                              *
4 *                                                                          *
5 * Funktion:..WorldWideWeb-X.500-Gateway - Server-Funktions                 *
6 *            Based on web500gw.c 1.3 written by Frank Richter, TU Chemmniz *
7 *            which is based on go500gw by Tim Howes, University of         *
8 *            Michigan  - All rights reserved                               *
9 *                                                                          *
10 * Authors:...Dr. Kurt Spanier & Bernhard Winkler,                          *
11 *            Zentrum fuer Datenverarbeitung, Bereich Entwicklung           *
12 *            neuer Dienste, Universitaet Tuebingen, GERMANY                *
13 *                                                                          *
14 *                                       ZZZZZ  DDD    V   V                *
15 *            Creation date:                Z   D  D   V   V                *
16 *            August 16 1995               Z    D   D   V V                 *
17 *            Last modification:          Z     D  D    V V                 *
18 *            December 31 1998           ZZZZ   DDD      V                  *
19 *                                                                          *
20 _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_*/
21
22 /*
23  * $Id: server.h,v 1.6 1999/09/10 15:01:19 zrnsk01 Exp $
24  *
25  */
26
27 #ifndef _SERVER_
28 #define _SERVER_
29
30 #include "server_exp.h"
31 #include "queries_exp.h"
32 #include "support_exp.h"
33
34 #ifdef TUE_TEL
35 #include "tueTel_exp.h"
36 #endif
37
38
39 #define CARRSIZE 8192
40
41 #define MASK_30 0x40000000
42 #define MASK_20 0x00100000
43 #define MASK_17 0x00020000
44 #define MASK_10 0x00000ffc
45
46 #define IP_HACK(x)    ((((MASK_30 & (x)) != 0) * 4096) + \
47                        (((MASK_20 & (x)) != 0) * 2048) + \
48                        (((MASK_17 & (x)) != 0) * 1024) + \
49                        ((MASK_10 & (x)) >> 2))
50
51 /* three integer-arrays to count connections */
52 int conArr[CARRSIZE];
53 unsigned long int shadowconArr[CARRSIZE];
54 unsigned long int sumconArr[CARRSIZE];
55
56 /* the signal-handler */
57 PRIVATE void reset_conMem();
58
59 /* set the Alarm-Timer */
60 PRIVATE void    hackTimer();
61
62 PRIVATE int set_socket();
63 PRIVATE void wait4child();
64
65 /*  A pointer to the Anti-Hack-infos in the Glob-structure */
66 COMREFUSE  *comRefuseP = NULL;
67 time_t *stat_slice;
68
69
70 #endif /* _SERVER_ */
71
72