sock_printf(sock, "GOTO %s\n", roomname);
sock_getln(sock, buf, sizeof buf);
sock_printf(sock, "GOTO %s\n", roomname);
sock_getln(sock, buf, sizeof buf);
/* Only fetch enough message pointers to fill our buffer.
* Since we're going to delete them, if there are more we will get them on the next run.
*/
sock_printf(sock, "MSGS LAST|%d\n", MAXMSGS);
sock_getln(sock, buf, sizeof buf);
/* Only fetch enough message pointers to fill our buffer.
* Since we're going to delete them, if there are more we will get them on the next run.
*/
sock_printf(sock, "MSGS LAST|%d\n", MAXMSGS);
sock_getln(sock, buf, sizeof buf);
while (sock_getln(sock, buf, sizeof buf), strcmp(buf, "000")) {
msgs[num_msgs++] = atol(buf);
}
while (sock_getln(sock, buf, sizeof buf), strcmp(buf, "000")) {
msgs[num_msgs++] = atol(buf);
}
if (pclose(fp) == 0) {
sock_printf(sock, "DELE %ld\n", msgs[i]);
sock_getln(sock, buf, sizeof buf);
if (pclose(fp) == 0) {
sock_printf(sock, "DELE %ld\n", msgs[i]);
sock_getln(sock, buf, sizeof buf);
fflush(stdout);
sprintf(buf, "%s/citadel.socket", ctdldir);
server_socket = uds_connectsock(buf);
fflush(stdout);
sprintf(buf, "%s/citadel.socket", ctdldir);
server_socket = uds_connectsock(buf);
sock_printf(server_socket, "IPGM %d\n", ipgm_secret);
sock_getln(server_socket, buf, sizeof buf);
sock_printf(server_socket, "IPGM %d\n", ipgm_secret);
sock_getln(server_socket, buf, sizeof buf);
sock_puts(server_socket, "QUIT");
sock_getln(server_socket, buf, sizeof buf);
sock_puts(server_socket, "QUIT");
sock_getln(server_socket, buf, sizeof buf);