FACT++  1.0
db_dim_server.c
Go to the documentation of this file.
1 // db_dim_server.c : Defines the entry point for the console application.
2 //
3 // Dietrich Beck
4 //
5 // This is a DIM test server. It just publishes a servivce and updates
6 // that service very fast.
7 
8 #include <stdio.h>
9 #include <sys/timeb.h>
10 #include <time.h>
11 #include <dis.h>
12 
13 #define BUFFSIZE 10000000
14 
17 int size=10000;
18 int count;
19 
20 void main()
21 {
22  service_id = dis_add_service("testBuffer","C",buffer,size,0,0);
23  dis_start_serving("DIS_TEST");
24  count = 0;
25  while(1)
26  {
27  sprintf(buffer,"%d", count);
29  count++;
30  }
31 }
char buffer[BUFFSIZE]
Definition: db_dim_server.c:15
#define BUFFSIZE
Definition: db_dim_server.c:13
#define dis_start_serving
Definition: dis.h:8
#define dis_update_service
Definition: dis.h:18
int count
Definition: db_dim_server.c:18
int size
Definition: db_dim_server.c:17
void main()
Definition: db_dim_server.c:20
#define dis_add_service
Definition: dis.h:12
int service_id
Definition: db_dim_server.c:16
sprintf(name1,"NewService%d", i)