]> andersk Git - moira.git/blobdiff - server/mr_server.h
improved DEC version of message about delete key;
[moira.git] / server / mr_server.h
index 0ea58582bad0f89bd02ee14750ed3150bcfc6132..23d2c49a00392ff48a1b6b5f157a45ad068586dd 100644 (file)
@@ -34,6 +34,8 @@ struct krbname {
  * This structure holds all per-client information; one of these is
  * allocated for each active client.
  */
+
+#define NLISTS 100
    
 typedef struct _client {
        OPERATION pending_op;   /* Primary pending operation */
@@ -42,12 +44,14 @@ typedef struct _client {
        sms_params *args, reply;
        int id;                 /* Unique id of client */
        struct sockaddr_in haddr; /* IP address of client */
-       char *clname;           /* Name client authenticated to */
-       int users_id;           /* SMS internal ID of authenticated user */
+       char clname[MAX_K_NAME_SZ];/* Name client authenticated to */
        struct krbname kname;   /* Parsed version of the above */
+       int users_id;           /* SMS internal ID of authenticated user */
+       int client_id;          /* SMS internal ID of client for modby field */
        returned_tuples *first, *last;
        time_t last_time_used;  /* Last time connection used */
-       char *entity;           /* entity on other end of the connection */
+       char entity[9];         /* entity on other end of the connection */
+       int lists[NLISTS];      /* lists this person is a member of */
 } client;
 
 /*
@@ -90,3 +94,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.098323 seconds and 4 git commands to generate.