source: trunk/FACT++/dim_v19r15/src/examples/test_big_server.c@ 10305

Last change on this file since 10305 was 10183, checked in by tbretz, 14 years ago
New import.
File size: 480 bytes
Line 
1#include <dis.h>
2
3#define MAX_SERVICES 40000
4int Data[MAX_SERVICES];
5
6main(argc,argv)
7int argc;
8char **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
Note: See TracBrowser for help on using the repository browser.