FACT++  1.0
test_big_server.c
Go to the documentation of this file.
1 #include <dis.h>
2 
3 #define MAX_SERVICES 40000
5 
6 main(argc,argv)
7 int argc;
8 char **argv;
9 {
10  int i;
11  char name[64];
12  int ids[MAX_SERVICES];
13 /*
14  dic_set_dns_node("lxplus059.cern.ch");
15 */
16  for(i = 0; i< MAX_SERVICES; i++)
17  {
18  Data[i] = i;
19  sprintf(name,"%s/Service_%d",argv[1],i);
20  ids[i] = dis_add_service( name, "I", &Data[i],
21  sizeof(Data[i]), (void *)0, 0 );
22  }
23  dis_start_serving( argv[1] );
24  while(1)
25  pause();
26 }
27 
28 
29 
#define MAX_SERVICES
int Data[MAX_SERVICES]
int ids[10]
int i
Definition: db_dim_client.c:21
#define dis_start_serving
Definition: dis.h:8
main(int argc, char **argv)
#define dis_add_service
Definition: dis.h:12
sprintf(name1,"NewService%d", i)