appConfig.h
778 Bytes
#ifndef __APP_CONFIG_H__
#define __APP_CONFIG_H__
#define MAXPENDING 10 /* Maximum outstanding connection requests */
#define MAXCLIENTS 1000 /* Maximum connection handled in paralell */
#define READBUFSIZE 2048 /* Size of receive buffer */
#define DEFAULTPORT 8801 /* default port for service */
#define DEFAULTPATH "logfiles"
#define LOGNAMEPATTERN "log-%Y-%m-%d_%Hh"
typedef struct {
unsigned char verbose;
unsigned char doDaemon;
unsigned char doGzip;
unsigned int maxPending;
unsigned int port;
char logPath[513];
char namePat[513];
} tAppConfig;
extern unsigned char verbose;
extern unsigned char doGzip;
int
handleCmdLine(tAppConfig * config, int argc, char *argv[]);
#endif // __APP_CONFIG_H__