]> andersk Git - moira.git/blobdiff - server/mr_server.h
don't put exclusive locks on capacls and alias tables (almost every
[moira.git] / server / mr_server.h
index 70d9b6f141e9966982834c652b9562a7cf66cc54..3ded5827f855ca214573e262643c2b6031e8ddf2 100644 (file)
@@ -38,8 +38,6 @@ struct krbname {
 typedef struct _client {
        OPERATION pending_op;   /* Primary pending operation */
        CONNECTION con;         /* Connection to the client */
-       int state;              /* XXX this is really superfluous and should */
-                               /* be removed */
        int action;             /* what action is pending? */
        sms_params *args, reply;
        int id;                 /* Unique id of client */
@@ -84,7 +82,7 @@ extern int log_flags;
 
 
 /* max length of query argument allowed */
-#define ARGLEN 128
+#define ARGLEN 257
 
 /* statistics on number of queries by version number */
 extern int newqueries, oldqueries;
@@ -92,3 +90,13 @@ extern int newqueries, oldqueries;
 /* Maximum and minimum values that will ever be chosen for IDs */
 #define MAX_ID_VALUE   32765
 #define MIN_ID_VALUE   100
+
+/* Sleepy states for the server! */
+#define AWAKE 0
+#define SLEEPY 1
+#define ASLEEP 2
+#define GROGGY 3
+extern int dormant;
+
+/* If the motd file exists, the server will go to sleep. */
+#define SMS_MOTD_FILE "/etc/smsdown"
This page took 0.060921 seconds and 4 git commands to generate.