FACT++
1.0
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
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
15
char
buffer
[
BUFFSIZE
];
16
int
service_id
;
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
);
28
dis_update_service
(
service_id
);
29
count
++;
30
}
31
}
dis.h
buffer
char buffer[BUFFSIZE]
Definition:
db_dim_server.c:15
BUFFSIZE
#define BUFFSIZE
Definition:
db_dim_server.c:13
dis_start_serving
#define dis_start_serving
Definition:
dis.h:8
dis_update_service
#define dis_update_service
Definition:
dis.h:18
count
int count
Definition:
db_dim_server.c:18
size
int size
Definition:
db_dim_server.c:17
main
void main()
Definition:
db_dim_server.c:20
dis_add_service
#define dis_add_service
Definition:
dis.h:12
service_id
int service_id
Definition:
db_dim_server.c:16
sprintf
sprintf(name1,"NewService%d", i)
dim
src
examples
db_dim_server.c
Generated on Sun Sep 18 2016 20:50:18 for FACT++ by
1.8.11