source: trunk/FACT++/dim/src/examples/test_big_server.c@ 11071

Last change on this file since 11071 was 11071, checked in by tbretz, 13 years ago
Replaced v19r21 by a version extracted with 'unzip -a' to get proper unix text format.
File size: 451 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.