+Mon Jan 4 23:04:36 EST 1999 Art Cancro <ajc@uncnsrd.mt-kisco.ny.us>
+ * Removed wc_host and wc_port cookies.
+
Sun Jan 3 20:05:31 EST 1999 Art Cancro <ajc@uncnsrd.mt-kisco.ny.us>
* Added "enter registration"
* Set up automatic trigger of Enter Registration when the server
#include "child.h"
int wc_session;
-char wc_host[256];
-char wc_port[256];
char wc_username[256];
char wc_password[256];
char wc_roomname[256];
printf("Connection: close\n");
printf("Set-cookie: wc_session=%d\n", wc_session);
- if (strlen(wc_host)>0) printf("Set-cookie: wc_host=%s\n", wc_host);
- else printf("Set-cookie: wc_host=%s\n", unset);
-
- if (strlen(wc_port)>0) printf("Set-cookie: wc_port=%s\n", wc_port);
- else printf("Set-cookie: wc_port=%s\n", unset);
-
if (strlen(wc_username)>0) printf("Set-cookie: wc_username=%s\n",
wc_username);
else printf("Set-cookie: wc_username=%s\n", unset);
do {
getz(buf);
- if (!strncasecmp(buf, "Cookie: wc_host=", 16))
- strcpy(c_host, &buf[16]);
- if (!strncasecmp(buf, "Cookie: wc_port=", 16))
- strcpy(c_port, &buf[16]);
if (!strncasecmp(buf, "Cookie: wc_username=", 20))
strcpy(c_username, &buf[20]);
if (!strncasecmp(buf, "Cookie: wc_password=", 20))
serv_sock = connectsock(c_host, c_port, "tcp");
connected = 1;
serv_gets(buf); /* get the server welcome message */
- strcpy(wc_host, c_host);
- strcpy(wc_port, c_port);
get_serv_info();
}
defaultport = argv[3];
}
- strcpy(wc_host, "");
- strcpy(wc_port, "");
strcpy(wc_username, "");
strcpy(wc_password, "");
strcpy(wc_roomname, "");