6 * Copyright (C) 1987 by the Massachusetts Institute of Technology
8 * Global variables inside the SMS server.
11 * Revision 1.6 1988-06-30 12:38:46 mar
12 * added variables to count queries by version, and journal file
14 * Revision 1.5 87/07/29 16:03:15 wesommer
15 * Added "now" variable.
18 * Revision 1.4 87/07/14 00:38:14 wesommer
19 * Added log_flags global variable.
21 * Revision 1.3 87/06/30 20:03:15 wesommer
22 * Added local realm global variable.
24 * Revision 1.2 87/06/21 16:42:16 wesommer
25 * Performance work, rearrangement of include files.
27 * Revision 1.1 87/06/02 20:07:25 wesommer
33 static char *rcsid_sms_srvdata_c = "$Header$";
36 #include "sms_server.h"
39 * Connections & clients:
41 * The template and most recently connected connection:
43 CONNECTION listencon, newconn;
45 * The template listen operation.
49 * The list of operations corresponding to the I/O being done by the
50 * currently connected clients.
52 LIST_OF_OPERATIONS op_list;
54 * The current number of connected clients, an array of them, and the
55 * "current" client, if any.
58 client **clients, *cur_client;
60 * Socket address of the most recently connected client.
62 struct sockaddr_in client_addr;
65 * Additional data sent at connect time by the client
66 * (provided by GDB; ignored by SMS)
71 * Name server was invoked as.
75 * Buffer for use in error messages.
80 * If non-null, reason for shutdown. (SMS will be going down shortly
81 * if this is non-null)
86 * The name of the local Kerberos realm
89 char *krb_realm = NULL;
94 int log_flags = LOG_CONNECT|LOG_REQUESTS|LOG_ARGS|LOG_RES;
97 * Time of last time through main loop.
103 * Statistics on number of queries of each version that have been attempted
110 /* Journalling file */
111 FILE *journal = NULL;