ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/hopm/branches/1.1.x/src/options.h
Revision: 5198
Committed: Mon Dec 29 16:53:16 2014 UTC (11 years, 6 months ago) by michael
Content type: text/x-chdr
Original Path: hopm/trunk/src/options.h
File size: 919 byte(s)
Log Message:
- Made NODATA_TIMEOUT a configuration option

File Contents

# User Rev Content
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     #endif /* OPTIONS_H */

Properties

Name Value
svn:eol-style native
svn:keywords Id