#ifndef _DEFS_H_ #define _DEFS_H_ #define _VERBOSE_ 0 // Print out generally useless stuff #define _LOG_ 0 // Print out loging output, turn off for speed #define VPRINTF(x) if(_VERBOSE_) printf x; #define BZERO(x,z) memset(x,0,z) #define _THREAD_POOL_ //Whether to spwan new threads for each connection //or use pooling #define LOCAL_GET "LOCAL_GET" #define DieWithError(msg) { \ fprintf(stderr, "%s: PwnT! Error on line %d.\n", (msg), __LINE__); \ perror(msg); \ exit(EXIT_FAILURE);} #endif