Project

General

Profile

Statistics
| Revision:

root / trunk / code / projects / colonet / ColonetServer / includes / options.h @ 426

History | View | Annotate | Download (469 Bytes)

1
/**
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 options_parseCmdLine(int argc, char** argv);
25

    
26
#endif