#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" #undef MAX #define MAX(x,y) ((x) > (y) ? (x) : (y)) #undef MIN #define MIN(x,y) ((x) < (y) ? (x) : (y)) typedef struct { unsigned char verbose; unsigned char doDaemon; unsigned int maxPending; unsigned int port; char logPath[513]; char namePat[513]; } tAppConfig; int handleCmdLine(tAppConfig * config, int argc, char *argv[]); #endif // __APP_CONFIG_H__