Move server configuration to dedicated server only. Separate error logging for client and server, in preparation of creating a log file on the dedicated server.

This commit is contained in:
lotodore
2007-11-22 00:57:03 +00:00
parent e28220a8ad
commit c5bae66142
10 changed files with 230 additions and 41 deletions
+3 -7
View File
@@ -18,6 +18,7 @@
***************************************************************************/
#include "avatarmanager.h"
#include <net/net_helper.h>
#include <net/socket_msg.h>
#include <core/loghelper.h>
#include <core/crypthelper.h>
@@ -30,13 +31,8 @@
#include <fstream>
#include <cstring>
#ifdef POKERTH_DEDICATED_SERVER
#define MAX_NUMBER_OF_FILES 1024
#define MAX_AVATAR_CACHE_AGE 2592000 // 1 Month
#else
#define MAX_NUMBER_OF_FILES 256
#define MAX_AVATAR_CACHE_AGE 86400
#endif
#define MAX_NUMBER_OF_FILES GetMaxNumberOfAvatarFiles()
#define MAX_AVATAR_CACHE_AGE GetMaxAvatarCacheAgeSec()
#define PNG_HEADER "\x89\x50\x4e\x47\x0d\x0a\x1a\x0a"
#define PNG_HEADER_SIZE (sizeof(PNG_HEADER) - 1)