From: dmonger@yabbs To: Death@yabbs Subject: com yabbs Date: Fri Jul 22 20:44:10 1994 okay, to anyone with enough knowledge to try this who feels adventurous enough: grab the yabbs client code ... get it compile a normal client. then go to the yabbslib directory. edit the file yabbslib.c add: #include #include to the top where the rest of the include files are. then add the line #define CSTRING "telnet phred.pc.cc.cmu.edu 4225\r" after the #include statments. you may need to change this string, so make sure you can find it later then replace two functions with the versions you see below (in csendp send was replaced with write, and the flags argument was removed) void bbsi_csendp(int n, char *key, char *command, ...) { va_list ap; char *parameter, p2[1024], buf[1024]; int i, x, y; va_start(ap, command); strcpy(buf, key); strcat(buf, ":"); strcat(buf, command); for (i = 1; i < n; i++) { strcat(buf, ":"); parameter = va_arg(ap, char *); for (x = 0, y = 0; parameter[x] != 0; x++) { if (parameter[x] == ':') p2[y++] = '\\'; if (parameter[x] == '\\') p2[y++] = '\\'; p2[y++] = parameter[x]; } p2[y] = 0; strcat(buf, p2); } strcat(buf, "\n"); if (bbs_debug & DBG_SEND) printf("send: %s", buf); write(bbs_s, buf, strlen(buf)); } void bbs_connect(char *server) { char buf = '\0'; bbs_s = open(server, O_RDWR, 0000440); write(bbs_s, CSTRING, sizeof(CSTRING)); while(buf != '_'){ read(bbs_s, &buf, 1); putchar(buf); } strcpy(bbs_waitkey, "NEWCLI"); if (!bbs_handlemsg()) { cli_fatalerror("Doesn't look like a yabbs server"); } } okay, you're almost done: now comes the fun part ... edit CSTRING to be what you would type in from your dialup connection to get to the yabbs port ... for me its just a telnet command. whatever floats your boat :) make the client run your favorite com proram (something that you can suspend) and connect to your dialup ... get to the pont where entering CSTRING would connect you to the yabbs port. suspend the com program and run the modified client. pray it has a few problems reading in the initial files from the server, but i've been able to log in and do anything i need to. if it works, have fun ... if not hack on it yourself have fun -peter