fgms 0.11.8
The
FlightGear MultiPlayer Server
project
fgt_config.h
Go to the documentation of this file.
1 /*
2  * fgt_config.h - configuration options
3  *
4  * Author: Gabor Toth <tgbp@freemail.hu>
5  * License: GPL
6  *
7  * $Log: config.h,v $
8  * Revision 1.2 2006/05/10 21:22:34 koversrac
9  * Comment with author and license has been added.
10  * Revision 1.3 2012/07/02 geoff
11  * Allow external setting of the defaults
12  *
13  */
14 
15 #ifndef _fgt_config_h
16 #define _fgt_config_h
17 
18 #ifdef _MSC_VER
19 #include <Winsock2.h> /* NOTE: This ALSO includes <windows.h> */
20 #include <sys/types.h>
21 #include <sys/stat.h>
22 #include <Ws2tcpip.h>
23 #include <time.h>
24 #include <errno.h>
25 #include <fcntl.h>
26 #include <signal.h>
27 #include <stdio.h>
28 #include <stdlib.h>
29 #include <stdarg.h>
30 #include <string.h>
31 #define inline __inline
32 #ifndef bool
33 #define bool int
34 #endif
35 #endif // _MSC_VER
36 
37 #ifndef SERVER_ADDRESS
38 #define SERVER_ADDRESS "127.0.0.1"
39 #endif
40 
41 #ifndef SERVER_PORT
42 #define SERVER_PORT 8000
43 #endif
44 
45 #ifndef SERVER_LISTENQ
46 #define SERVER_LISTENQ 10
47 #endif
48 
49 #ifndef DEBUG_LEVEL
50 #define DEBUG_LEVEL 3 // 0 = none, max is 3, to syslog("fgtracker-server") if daemon, else printf()
51 #endif
52 
53 #ifndef RUN_AS_DAEMON
54 #define RUN_AS_DAEMON 1
55 #endif
56 
57 #endif // #ifndef _fgt_config_h
58 /* eof - fgt_config.h */
59