4 * The CtdlGetServerInfo() function is useful for
16 void CtdlInternalGetServInfo(struct CtdlServInfo *infobuf) {
23 if (buf[0]!='1') return;
26 while(serv_gets(buf), strcmp(buf,"000")) {
28 case 0: infobuf->serv_pid = atoi(buf);
30 case 1: strcpy(infobuf->serv_nodename,buf);
32 case 2: strcpy(infobuf->serv_humannode,buf);
34 case 3: strcpy(infobuf->serv_fqdn,buf);
36 case 4: strcpy(infobuf->serv_software,buf);
38 case 5: infobuf->serv_rev_level = atoi(buf);
40 case 6: strcpy(infobuf->serv_bbs_city,buf);
42 case 7: strcpy(infobuf->serv_sysadm,buf);
44 case 9: strcpy(infobuf->serv_moreprompt,buf);
46 case 10: infobuf->serv_ok_floors = atoi(buf);