26 printf(
"Command received, size = %d, TT size = %d:\n", *size,
28 printf(
"buf->i = %d, buf->d = %2.2f, buf->s = %d, buf->c = %c, buf->f = %2.2f, buf->str = %s\n",
29 buf->
i,buf->
d,buf->
s,buf->
c,buf->
f,buf->
str);
39 printf(
"Client %s (%d) exited\n", name, *tag);
41 printf(
"Client %d exited\n", *tag);
96 printf(
"Exit_cmnd %d\n", *code);
112 char name[84], *ptrc;
116 for(i = 0; i< 10; i++)
131 strcpy(t.
str,
"hello world");
133 sprintf(aux,
"%s/TEST_SWAP",argv[1]);
134 id =
dis_add_service( aux,
"l:3;d:1;s:1;c:1;s:1;f:1;c:20", &t,
sizeof(t),
137 sprintf(aux,
"%s/TEST_CMD",argv[1]);
173 printf(
"client %s\n",name);
void client_exited(int *tag)
void exit_cmnd(int *code)
main(int argc, char **argv)
#define dis_start_serving
void cmnd_rout(int *tag, TT *buf, int *size)
#define dis_add_exit_handler
#define dis_add_client_exit_handler
sprintf(name1,"NewService%d", i)