]> andersk Git - moira.git/blame - server/mr_srvdata.c
added DCM & printcap menus
[moira.git] / server / mr_srvdata.c
CommitLineData
a3cf6921 1/*
2 * $Source$
3 * $Author$
4 * $Header$
5 *
6 * Copyright (C) 1987 by the Massachusetts Institute of Technology
7 *
8 * Global variables inside the SMS server.
9 *
10 * $Log$
7f7fdf1d 11 * Revision 1.6 1988-06-30 12:38:46 mar
12 * added variables to count queries by version, and journal file
a3cf6921 13 *
7f7fdf1d 14 * Revision 1.5 87/07/29 16:03:15 wesommer
15 * Added "now" variable.
16 * ,
17 *
b2328d1e 18 * Revision 1.4 87/07/14 00:38:14 wesommer
19 * Added log_flags global variable.
20 *
4d64e1de 21 * Revision 1.3 87/06/30 20:03:15 wesommer
22 * Added local realm global variable.
23 *
a7aaa15b 24 * Revision 1.2 87/06/21 16:42:16 wesommer
25 * Performance work, rearrangement of include files.
26 *
c27b3454 27 * Revision 1.1 87/06/02 20:07:25 wesommer
28 * Initial revision
29 *
a3cf6921 30 */
31
32#ifndef lint
33static char *rcsid_sms_srvdata_c = "$Header$";
34#endif lint
35
a3cf6921 36#include "sms_server.h"
37
38/*
39 * Connections & clients:
40 *
41 * The template and most recently connected connection:
42 */
43CONNECTION listencon, newconn;
44/*
45 * The template listen operation.
46 */
47OPERATION listenop;
48/*
49 * The list of operations corresponding to the I/O being done by the
50 * currently connected clients.
51 */
52LIST_OF_OPERATIONS op_list;
53/*
54 * The current number of connected clients, an array of them, and the
55 * "current" client, if any.
56 */
57int nclients=0;
58client **clients, *cur_client;
59/*
60 * Socket address of the most recently connected client.
61 */
62struct sockaddr_in client_addr;
63int client_addrlen;
64/*
65 * Additional data sent at connect time by the client
66 * (provided by GDB; ignored by SMS)
67 */
68TUPLE client_tuple;
69
70/*
71 * Name server was invoked as.
72 */
73char *whoami;
74/*
75 * Buffer for use in error messages.
76 */
77char buf1[BUFSIZ];
78
79/*
80 * If non-null, reason for shutdown. (SMS will be going down shortly
81 * if this is non-null)
82 */
83char *takedown=NULL;
a7aaa15b 84
85/*
86 * The name of the local Kerberos realm
87 */
88
89char *krb_realm = NULL;
4d64e1de 90/*
91 * Logging levels.
92 */
93
94int log_flags = LOG_CONNECT|LOG_REQUESTS|LOG_ARGS|LOG_RES;
b2328d1e 95
96/*
97 * Time of last time through main loop.
98 */
99time_t now;
7f7fdf1d 100
101
102/*
103 * Statistics on number of queries of each version that have been attempted
104 */
105
106int newqueries = 0;
107int oldqueries = 0;
108
109
110/* Journalling file */
111FILE *journal = NULL;
112
This page took 0.078945 seconds and 5 git commands to generate.