An xmlrpc test project
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

29 lines
800 B

#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__