root / trunk / code / projects / colonet / ColonetServer / includes / options.h @ 11
History | View | Annotate | Download (461 Bytes)
1 | 11 | emarinel | /**
|
---|---|---|---|
2 | * @file options.h
|
||
3 | * @brief Options for ColonetServer
|
||
4 | * @author Eugene Marinelli
|
||
5 | * @date 2/13/07
|
||
6 | */
|
||
7 | |||
8 | #ifndef OPTIONS_H
|
||
9 | #define OPTIONS_H
|
||
10 | |||
11 | #define DEFAULTPORT 10123 |
||
12 | #define SMALLEST_POSS_LISTEN_PORT 2000 |
||
13 | |||
14 | typedef struct { |
||
15 | int listen_port;
|
||
16 | char wireless_port[80]; |
||
17 | char log_filename[80]; |
||
18 | bool logging_enabled;
|
||
19 | bool listener_mode;
|
||
20 | } ColonetServerOptionsT; |
||
21 | |||
22 | extern ColonetServerOptionsT optionsG;
|
||
23 | |||
24 | void parseCmdLine(int argc, char** argv); |
||
25 | |||
26 | #endif |