]> andersk Git - moira.git/blob - server/mr_srvdata.c
Change `SMS' to `Moira' where possible.
[moira.git] / server / mr_srvdata.c
1 /*
2  *      $Source$
3  *      $Author$
4  *      $Header$
5  *
6  *      Copyright (C) 1987 by the Massachusetts Institute of Technology
7  *      For copying and distribution information, please see the file
8  *      <mit-copyright.h>.
9  *
10  *      Global variables inside the Moira server.
11  */
12
13 #ifndef lint
14 static char *rcsid_mr_srvdata_c = "$Header$";
15 #endif lint
16
17 #include <mit-copyright.h>
18 #include "mr_server.h"
19
20 /*
21  * Connections & clients:
22  *
23  * The template and most recently connected connection:
24  */
25 CONNECTION listencon, newconn;
26 /*
27  * The template listen operation.
28  */
29 OPERATION listenop;
30 /*
31  * The list of operations corresponding to the I/O being done by the
32  * currently connected clients.
33  */
34 LIST_OF_OPERATIONS op_list;
35 /*
36  * The current number of connected clients, an array of them, and the
37  * "current" client, if any.
38  */
39 int nclients = 0;
40 client **clients, *cur_client;
41 /*
42  * Socket address of the most recently connected client.
43  */
44 struct sockaddr_in client_addr;
45 int client_addrlen;
46 /*
47  * Additional data sent at connect time by the client
48  * (provided by GDB; ignored by Moira)
49  */
50 TUPLE client_tuple;
51
52 /*
53  * Name server was invoked as.
54  */
55 char *whoami;
56 /*
57  * Buffer for use in error messages.
58  */
59 char buf1[BUFSIZ];
60
61 /*
62  * If non-null, reason for shutdown.  (Moira will be going down shortly
63  * if this is non-null)
64  */
65 char *takedown = NULL;
66
67 /* States for putting the server to sleep & waking it up again. */
68 int dormant = AWAKE;
69
70 /*
71  * The name of the local Kerberos realm
72  */
73
74 char *krb_realm = NULL;
75 /*
76  * Logging levels.
77  */
78
79 int log_flags = LOG_CONNECT|LOG_REQUESTS|LOG_ARGS|LOG_RES;
80
81 /*
82  * Time of last time through main loop.
83  */
84 time_t now;
85
86
87 /*
88  * Statistics on number of queries of each version that have been attempted
89  */
90
91 int newqueries = 0;
92 int oldqueries = 0;
93
94
95 /* Journalling file */
96 FILE *journal = NULL;
97
This page took 0.043449 seconds and 5 git commands to generate.