| 1 |
michael |
5052 |
#ifndef OPTIONS_H |
| 2 |
|
|
#define OPTIONS_H |
| 3 |
|
|
|
| 4 |
|
|
/* The default name for conf, log, pid files */ |
| 5 |
michael |
5057 |
#define DEFAULTNAME "hopm" |
| 6 |
michael |
5052 |
|
| 7 |
|
|
/* file extensions */ |
| 8 |
|
|
/* config */ |
| 9 |
|
|
#define CONFEXT "conf" |
| 10 |
|
|
|
| 11 |
|
|
/* log file */ |
| 12 |
|
|
#define LOGEXT "log" |
| 13 |
|
|
|
| 14 |
|
|
/* PID file */ |
| 15 |
|
|
#define PIDEXT "pid" |
| 16 |
|
|
|
| 17 |
|
|
/* Maximum commands to queue */ |
| 18 |
|
|
#define COMMANDMAX 64 |
| 19 |
|
|
|
| 20 |
|
|
/* Interval (in seconds) to check command queue for timed out commands */ |
| 21 |
|
|
#define COMMANDINTERVAL 10 |
| 22 |
|
|
|
| 23 |
|
|
/* Timeout of commands (in seconds) */ |
| 24 |
|
|
#define COMMANDTIMEOUT 180 |
| 25 |
|
|
|
| 26 |
|
|
/* Interval in how often we try to reconnect (in seconds) */ |
| 27 |
|
|
#define RECONNECTINTERVAL 30 |
| 28 |
|
|
|
| 29 |
|
|
/* How long (in seconds) between rebuilds of the negative cache. The negcache |
| 30 |
|
|
* is only rebuilt to free up memory used by entries that are too old. You |
| 31 |
|
|
* probably don't need to tweak this unless you have huge amounts of people |
| 32 |
|
|
* connecting (hundreds per minute). Default is 12 hours. |
| 33 |
|
|
*/ |
| 34 |
|
|
#define NEG_CACHE_REBUILD (60 * 60 * 12) |
| 35 |
|
|
|
| 36 |
|
|
/* Defines time in which bot will timeout * if no data is received |
| 37 |
|
|
* (default 15 min) */ |
| 38 |
|
|
#define NODATA_TIMEOUT 900 |
| 39 |
|
|
|
| 40 |
|
|
#endif /* OPTIONS_H */ |