#ifndef TYPEDEF_H #define TYPEDEF_H #include #define __str__(x) #x #define stringize(x) __str__(x) #define __RED__ "\033[0;31m" #define __GREEN__ "\033[0;32m" #define __RESET__ "\033[0m" #define info(...) fprintf(stdout, __GREEN__"[INFO]"__RESET__" "__FILE__":"stringize(__LINE__)": "__VA_ARGS__) #define err(...) fprintf(stderr, __RED__"[ERR]"__RESET__" "__FILE__":"stringize(__LINE__)": "__VA_ARGS__) #define BUF_CAP 65536 // max datagram size #define REC_CAP 5880 // 30th of a second of audio #endif