]>
Commit | Line | Data |
---|---|---|
a3cf6921 | 1 | /* |
2 | * $Source$ | |
3 | * $Author$ | |
4 | * $Header$ | |
5 | * | |
6 | * Copyright (C) 1987 by the Massachusetts Institute of Technology | |
c801de4c | 7 | * For copying and distribution information, please see the file |
8 | * <mit-copyright.h>. | |
a3cf6921 | 9 | * |
10 | * Global variables inside the SMS server. | |
a3cf6921 | 11 | */ |
12 | ||
13 | #ifndef lint | |
14 | static char *rcsid_sms_srvdata_c = "$Header$"; | |
15 | #endif lint | |
16 | ||
c801de4c | 17 | #include <mit-copyright.h> |
a3cf6921 | 18 | #include "sms_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 SMS) | |
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. (SMS will be going down shortly | |
63 | * if this is non-null) | |
64 | */ | |
65 | char *takedown=NULL; | |
a7aaa15b | 66 | |
67 | /* | |
68 | * The name of the local Kerberos realm | |
69 | */ | |
70 | ||
71 | char *krb_realm = NULL; | |
4d64e1de | 72 | /* |
73 | * Logging levels. | |
74 | */ | |
75 | ||
76 | int log_flags = LOG_CONNECT|LOG_REQUESTS|LOG_ARGS|LOG_RES; | |
b2328d1e | 77 | |
78 | /* | |
79 | * Time of last time through main loop. | |
80 | */ | |
81 | time_t now; | |
7f7fdf1d | 82 | |
83 | ||
84 | /* | |
85 | * Statistics on number of queries of each version that have been attempted | |
86 | */ | |
87 | ||
88 | int newqueries = 0; | |
89 | int oldqueries = 0; | |
90 | ||
91 | ||
92 | /* Journalling file */ | |
93 | FILE *journal = NULL; | |
94 |