31 printf(
"Command received, size = %d, TT size = %d:\n", *size,
33 printf(
"buf->i = %d, buf->d = %2.2f, buf->s = %d, buf->c = %c, buf->f = %2.2f, buf->str = %s\n",
34 buf->
i,buf->
d,buf->
s,buf->
c,buf->
f,buf->
str);
42 printf(
"Client %s (%d) exited\n", name, *tag);
44 printf(
"Client %d exited\n", *tag);
49 printf(
"Exit_cmnd %d\n", *code);
64 int main(
int argc,
char **argv)
96 new_dns =
dim_get_env_var(
"EXTRA_DNS_NODE", extra_dns,
sizeof(extra_dns));
109 for(i = 0; i< 10; i++)
123 strcpy(t.
str,
"hello world");
125 sprintf(aux,
"%s/TEST_SWAP",argv[1]);
126 id =
dis_add_service( aux,
"l:3;d:1;s:1;c:1;s:1;f:1;c:20", &t,
sizeof(t),
129 sprintf(aux,
"%s/TEST_CMD",argv[1]);
154 printf(
"client %s\n",name);
void cmnd_rout(int *tag, TT *buf, int *size)
dim_long dis_add_dns(char *node_name, int port_number)
dim_get_env_var("EXTRA_DNS_NODE", extra_dns, sizeof(extra_dns))
void exit_cmnd(int *code)
void client_exited(int *tag)
#define dis_start_serving
void dim_print_date_time()
#define dis_add_exit_handler
#define dis_add_client_exit_handler
sprintf(name1,"NewService%d", i)
int main(int argc, char **argv)