diff options
| author | Franklin Wei <git@fwei.tk> | 2016-01-16 20:05:58 -0500 |
|---|---|---|
| committer | Franklin Wei <git@fwei.tk> | 2016-01-16 20:05:58 -0500 |
| commit | 98896de83ffa7380404e41b6ed80cfc6ba3bf8f0 (patch) | |
| tree | 427f48b92d647c6278df083f86d33a7545710a6c /src/globals.h | |
| parent | 056220075ca575c17899abea7b3a2fb55e64b561 (diff) | |
| download | netcosm-98896de83ffa7380404e41b6ed80cfc6ba3bf8f0.zip netcosm-98896de83ffa7380404e41b6ed80cfc6ba3bf8f0.tar.gz netcosm-98896de83ffa7380404e41b6ed80cfc6ba3bf8f0.tar.bz2 netcosm-98896de83ffa7380404e41b6ed80cfc6ba3bf8f0.tar.xz | |
packetized requests
Diffstat (limited to 'src/globals.h')
| -rw-r--r-- | src/globals.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/globals.h b/src/globals.h index 35db514..1eed1d4 100644 --- a/src/globals.h +++ b/src/globals.h @@ -29,6 +29,7 @@ #include <ctype.h> #include <errno.h> #include <fcntl.h> +#include <limits.h> #include <netdb.h> #include <netinet/in.h> #include <poll.h> @@ -55,6 +56,8 @@ /* global constants */ #define USERFILE "users.dat" #define WORLDFILE "world.dat" +#define LOGFILE "netcosm.log" + #define WORLD_MAGIC 0xff467777 #define MAX_FAILURES 3 #define NETCOSM_VERSION "0.2" @@ -78,8 +81,7 @@ #include "util.h" -/* needs to be less than PIPE_BUF, which is 4096 */ -#define MSG_MAX 2048 +#define MSG_MAX PIPE_BUF #ifndef NDEBUG #define debugf(fmt,...) debugf_real(__func__, __LINE__, __FILE__, fmt, ##__VA_ARGS__) #define sig_debugf debugf |