FACT++  1.0
main ( int  argc,
char **  argv 
)

Definition at line 87 of file test_client_many.c.

References client_str, dic_cmnd_service(), dic_get_id(), dic_info_service(), i, MONITORED, no_link_float, rout_many(), sprintf(), and str.

90 {
91  int i, *ptr;
92  char aux[80];
93  int id = 123;
94 
95 /*
96  dic_set_debug_on();
97 */
98 /*
99  dic_set_dns_node("pclhcb99.cern.ch");
100 */
101 
102  sprintf(str,"%s/SET_EXIT_HANDLER",argv[2]);
103  dic_cmnd_service(str, &id, 4);
104  dic_get_id(aux);
105  printf("%s\n",aux);
106  strcpy(client_str,argv[1]);
107 /*
108  for(i = 0; i< 10; i++)
109  {
110  sprintf(str,"%s/Service_%03d",argv[2],i);
111  dic_info_service( str, TIMED, 10, 0, 0, rout, i,
112  "No Link", 8 );
113  }
114 
115  sprintf(aux,"%s/TEST_SWAP",argv[2]);
116  dic_info_service_stamped( aux, TIMED, 5, 0, 0, rout, 1200,
117  &no_link, 4 );
118 */
119 /*
120  sprintf(aux,"%s/TestMem",argv[2]);
121  dic_info_service( aux, MONITORED, 0, 0, 0, big_rout, 0,
122  &no_link, 4 );
123 */
124 
125  for(i = 0; i< 100000; i++)
126  {
127  sprintf(aux,"%s/ServiceMany%05d",argv[2],i);
128  dic_info_service( aux, MONITORED, 60, 0, 0, rout_many, i,
129  &no_link_float, 4 );
130  }
131 
132  sprintf(aux,"%s/TEST_CMD",argv[2]);
133  while(1)
134  {
135  int index = 0;
136  sleep(10);
137 /*
138  printf("Sending Command, size = %d, i = %d\n",sizeof(t), t.i);
139  dic_cmnd_service(aux,&t,sizeof(t));
140 */
141  }
142 }
void rout_many(int *tag, float *buf, int *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)
Definition: dic.c:601
int dic_get_id(char *name)
Definition: dic.c:2062
int i
Definition: db_dim_client.c:21
#define MONITORED
Definition: dim_common.h:9
char str[80]
int dic_cmnd_service(char *serv_name, void *serv_address, int serv_size)
Definition: dic.c:694
float no_link_float
sprintf(name1,"NewService%d", i)
char client_str[80]

+ Here is the call graph for this function: