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 */
/* max length of query argument allowed */
-#define ARGLEN 128
+#define ARGLEN 257
/* statistics on number of queries by version number */
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"