3 * transmissions to clients of their selected messages
10 #include "auproto-pic.h"
12 #define FOR_CLS(s) do{ \
13 Client *cl, *next_cl; \
14 for (cl= clients.head; \
17 OutBufferChain *ch= &cl->ch; \
19 if (!(sel & cl->sel)) continue; \
24 void sovprintf(Selector sel, const char *fmt, va_list al) {
25 FOR_CLS( ovprintf(ch, fmt, al) );
28 void soprintf(Selector sel, const char *fmt, ...)
29 { va_list al; va_start(al,fmt); sovprintf(sel,fmt,al); va_end(al); }
31 void sowrite(Selector sel, const char *data, int l) {
32 FOR_CLS( owrite(ch, data, l) );