32 printf(
"Received %d for TestMem_%d\n", *buf, *tag);
59 printf(
"Received VERSION %lx, %d\n", (
dim_long)buf, *size);
73 printf(
"Received ONCE_ONLY : %s\n",
buff);
83 printf(
"DNS node = %s\n",node);
84 printf(
"size = %d\n",*size);
85 memcpy(&t, buf, (
size_t)*size);
86 printf(
"t.i = %d, t.d = %2.2f, t.s = %d, t.c = %c, t.f = %2.2f, t.str = %s\n",
91 str[(int)strlen(str)-1] =
'\0';
92 printf(
"timestamp = %s.%d\n",str,millis);
97 printf(
"%s Received %s for Service%03d\n",
client_str,buf,*tag);
106 int main(
int argc,
char **argv)
125 for(i = 0; i< 10; i++)
132 sprintf(aux,
"%s/TEST_SWAP",argv[2]);
161 sprintf(aux,
"%s/TEST_CMD",argv[2]);
165 printf(
"Sending Command, size = %d, i = %d\n",(
int)
sizeof(t), t.
i);
#define my_ctime(t, str, size)
unsigned dic_info_service_stamped(char *serv_name, int req_type, int req_timeout, void *serv_address, int serv_size, void(*usr_routine)(), dim_long tag, void *fill_addr, int fill_size)
unsigned dic_info_service(char *serv_name, int req_type, int req_timeout, void *serv_address, int serv_size, void(*usr_routine)(), dim_long tag, void *fill_addr, int fill_size)
void got_services(int *tag, char *list, int *size)
int dic_get_id(char *name)
int dic_cmnd_service(char *serv_name, void *serv_address, int serv_size)
int dic_get_dns_node(char *node)
void rout(int *tag, char *buf, int *size)
void got_servers(int *tag, char *list, int *size)
void version_rout(int *tag, int *buf, int *size)
void big_rout(int *tag, int *buf, int *size)
sprintf(name1,"NewService%d", i)
int main(int argc, char **argv)
int dic_get_timestamp(unsigned serv_id, int *secs, int *milisecs)