FACT++
1.0
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
test_big_server.c
Go to the documentation of this file.
1
#include <
dis.h
>
2
3
#define MAX_SERVICES 40000
4
int
Data
[
MAX_SERVICES
];
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
dis.h
MAX_SERVICES
#define MAX_SERVICES
Definition:
test_big_server.c:3
Data
int Data[MAX_SERVICES]
Definition:
test_big_server.c:4
ids
int ids[10]
Definition:
test_server_ccpc.c:5
i
int i
Definition:
db_dim_client.c:21
dis_start_serving
#define dis_start_serving
Definition:
dis.h:8
main
main(int argc, char **argv)
Definition:
test_big_server.c:6
dis_add_service
#define dis_add_service
Definition:
dis.h:12
sprintf
sprintf(name1,"NewService%d", i)
dim
src
examples
test_big_server.c
Generated on Sun Sep 18 2016 20:50:18 for FACT++ by
1.8.11