+send_status (Clients * cs, char *msg)
+{
+ char mbuf[IPC_MAX_BUF + sizeof (IPC_Msg_status)];
+ IPC_Msg_status *m = (IPC_Msg_status *) mbuf;
+ int len;
+
+ Client *c;
+
+ if (!msg) return;
+ len=strlen(msg)+1;
+
+ if (!len)
+ return;
+ if (len > IPC_MAX_BUF)
+ len = IPC_MAX_BUF;
+
+ m->size = len + sizeof (IPC_Msg_status);
+ m->type = IPC_MSG_TYPE_STATUS;
+ strncpy(m->status,msg, IPC_MAX_BUF);
+ m->status[IPC_MAX_BUF-1]=0;
+
+ for (c = cs->head; c; c = c->next)
+ {
+ if (!c->dead)
+ if (ipc_msg_send (c->s, (IPC_Msg *) m))
+ c->dead++;
+ }
+
+ return len;
+}
+
+
+int
+send_output (Clients * cs, void *buf, int len)