client log off. (The server doesn't support sending that flag yet, though)
$Log$
+ Revision 573.45 2000/12/11 02:19:26 ajc
+ * Client now honors EM_GO_AWAY flag, used by the server to request that a
+ client log off. (The server doesn't support sending that flag yet, though)
+
Revision 573.44 2000/12/09 06:20:06 ajc
* A few final touches to the Sleepycat DB back-end
Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
* Initial CVS import
+
char curr_floor = 0; /* number of current floor */
char floorlist[128][256]; /* names of floors */
char express_msgs = 0; /* express messages waiting! */
+volatile int termn8 = 0; /* Set to nonzero to cause a logoff */
extern int rc_ansi_color; /* ansi color value from citadel.rc */
char *telnet_client_host = NULL;
char *sptr, *sptr2; /* USed to extract the nonce */
char hexstring[MD5_HEXSTRING_SIZE];
- volatile int termn8 = 0;
int stored_password = 0;
char password[256];
int lines_printed = 0; /* line count for paginator */
extern int screenwidth, screenheight;
+extern int termn8;
struct citcmd *cmdlist = NULL;
FILE *outpipe;
time_t timestamp;
struct tm *stamp;
- int flags;
+ int flags = 0;
char sender[64];
char node[64];
}
printf("\n---\n");
color(BRIGHT_WHITE);
+
+ /* If the page is a Logoff Request, honor it. */
+ if (flags & 2) {
+ termn8 = 1;
+ }
+
}