]> andersk Git - moira.git/blob - server/mr_srvdata.c
Checkin for release.
[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  *
8  *      Global variables inside the SMS server.
9  * 
10  *      $Log$
11  *      Revision 1.5  1987-07-29 16:03:15  wesommer
12  *      Added "now" variable.
13  *      ,
14  *
15  * Revision 1.4  87/07/14  00:38:14  wesommer
16  * Added log_flags global variable.
17  * 
18  * Revision 1.3  87/06/30  20:03:15  wesommer
19  * Added local realm global variable.
20  * 
21  * Revision 1.2  87/06/21  16:42:16  wesommer
22  * Performance work, rearrangement of include files.
23  * 
24  * Revision 1.1  87/06/02  20:07:25  wesommer
25  * Initial revision
26  * 
27  */
28
29 #ifndef lint
30 static char *rcsid_sms_srvdata_c = "$Header$";
31 #endif lint
32
33 #include "sms_server.h"
34
35 /*
36  * Connections & clients:
37  *
38  * The template and most recently connected connection:
39  */
40 CONNECTION listencon, newconn;
41 /*
42  * The template listen operation.
43  */
44 OPERATION listenop;
45 /*
46  * The list of operations corresponding to the I/O being done by the
47  * currently connected clients.
48  */
49 LIST_OF_OPERATIONS op_list;
50 /*
51  * The current number of connected clients, an array of them, and the
52  * "current" client, if any.
53  */
54 int nclients=0;
55 client **clients, *cur_client;
56 /*
57  * Socket address of the most recently connected client.
58  */
59 struct sockaddr_in client_addr;
60 int client_addrlen;
61 /*
62  * Additional data sent at connect time by the client
63  * (provided by GDB; ignored by SMS)
64  */
65 TUPLE client_tuple;
66
67 /*
68  * Name server was invoked as.
69  */
70 char *whoami;
71 /*
72  * Buffer for use in error messages.
73  */
74 char buf1[BUFSIZ];
75
76 /*
77  * If non-null, reason for shutdown.  (SMS will be going down shortly
78  * if this is non-null)
79  */
80 char *takedown=NULL;
81
82 /*
83  * The name of the local Kerberos realm
84  */
85
86 char *krb_realm = NULL;
87 /*
88  * Logging levels.
89  */
90
91 int log_flags = LOG_CONNECT|LOG_REQUESTS|LOG_ARGS|LOG_RES;
92
93 /*
94  * Time of last time through main loop.
95  */
96 time_t now;
This page took 0.049805 seconds and 5 git commands to generate.