![]() |
Shadowrun: Awakened 29 September 2011 - Build 871
|
00001 #ifndef __RAKNET_DEFINES_H 00002 #define __RAKNET_DEFINES_H 00003 00004 // If you want to change these defines, put them in RakNetDefinesOverrides so your changes are not lost when updating RakNet 00005 // The user should not edit this file 00006 #include "RakNetDefinesOverrides.h" 00007 00012 #ifndef __GET_TIME_64BIT 00013 #define __GET_TIME_64BIT 1 00014 #endif 00015 00016 // Define _FILE_AND_LINE_ to "",0 if you want to strip out file and line info for memory tracking from the EXE 00017 #ifndef _FILE_AND_LINE_ 00018 #define _FILE_AND_LINE_ __FILE__,__LINE__ 00019 #endif 00020 00024 // #define __BITSTREAM_NATIVE_END 00025 00027 #ifndef MAX_ALLOCA_STACK_ALLOCATION 00028 #define MAX_ALLOCA_STACK_ALLOCATION 1048576 00029 #endif 00030 00031 // Use WaitForSingleObject instead of sleep. 00032 // Defining it plays nicer with other systems, and uses less CPU, but gives worse RakNet performance 00033 // Undefining it uses more CPU time, but is more responsive and faster. 00034 #ifndef _WIN32_WCE 00035 #define USE_WAIT_FOR_MULTIPLE_EVENTS 00036 #endif 00037 00040 #ifndef _USE_RAK_MEMORY_OVERRIDE 00041 #define _USE_RAK_MEMORY_OVERRIDE 0 00042 #endif 00043 00048 // #define OPEN_SSL_CLIENT_SUPPORT 00049 #ifndef OPEN_SSL_CLIENT_SUPPORT 00050 #define OPEN_SSL_CLIENT_SUPPORT 0 00051 #endif 00052 00055 #ifndef BITSTREAM_STACK_ALLOCATION_SIZE 00056 #define BITSTREAM_STACK_ALLOCATION_SIZE 256 00057 #endif 00058 00059 // Redefine if you want to disable or change the target for debug RAKNET_DEBUG_PRINTF 00060 #ifndef RAKNET_DEBUG_PRINTF 00061 #define RAKNET_DEBUG_PRINTF printf 00062 #endif 00063 00064 // Maximum number of local IP addresses supported 00065 #ifndef MAXIMUM_NUMBER_OF_INTERNAL_IDS 00066 #define MAXIMUM_NUMBER_OF_INTERNAL_IDS 10 00067 #endif 00068 00069 #ifndef RakAssert 00070 00071 00072 00073 00074 #if defined(_DEBUG) 00075 #define RakAssert(x) assert(x); 00076 #else 00077 #define RakAssert(x) 00078 #endif 00079 00080 #endif 00081 00085 #ifndef DATAGRAM_MESSAGE_ID_ARRAY_LENGTH 00086 #define DATAGRAM_MESSAGE_ID_ARRAY_LENGTH 512 00087 #endif 00088 00092 #ifndef RESEND_BUFFER_ARRAY_LENGTH 00093 #define RESEND_BUFFER_ARRAY_LENGTH 512 00094 #define RESEND_BUFFER_ARRAY_MASK 511 00095 #endif 00096 00098 // #define _LINK_DL_MALLOC 00099 00100 #ifndef GET_TIME_SPIKE_LIMIT 00101 00102 00103 00104 00105 #define GET_TIME_SPIKE_LIMIT 0 00106 #endif 00107 00108 // Use sliding window congestion control instead of ping based congestion control 00109 #ifndef USE_SLIDING_WINDOW_CONGESTION_CONTROL 00110 #define USE_SLIDING_WINDOW_CONGESTION_CONTROL 1 00111 #endif 00112 00113 // When a large message is arriving, preallocate the memory for the entire block 00114 // This results in large messages not taking up time to reassembly with memcpy, but is vulnerable to attackers causing the host to run out of memory 00115 #ifndef PREALLOCATE_LARGE_MESSAGES 00116 #define PREALLOCATE_LARGE_MESSAGES 0 00117 #endif 00118 00119 #ifndef RAKNET_SUPPORT_IPV6 00120 #define RAKNET_SUPPORT_IPV6 0 00121 #endif 00122 00123 00124 00125 00126 00127 00128 00129 00130 00131 00132 00133 #ifndef RAKSTRING_TYPE 00134 #if defined(_UNICODE) 00135 #define RAKSTRING_TYPE RakWString 00136 #define RAKSTRING_TYPE_IS_UNICODE 1 00137 #else 00138 #define RAKSTRING_TYPE RakString 00139 #define RAKSTRING_TYPE_IS_UNICODE 0 00140 #endif 00141 #endif 00142 00143 #ifndef RPC4_GLOBAL_REGISTRATION_MAX_FUNCTIONS 00144 #define RPC4_GLOBAL_REGISTRATION_MAX_FUNCTIONS 16 00145 #endif 00146 00147 #ifndef RPC4_GLOBAL_REGISTRATION_MAX_FUNCTION_NAME_LENGTH 00148 #define RPC4_GLOBAL_REGISTRATION_MAX_FUNCTION_NAME_LENGTH 32 00149 #endif 00150 00151 #ifndef XBOX_BYPASS_SECURITY 00152 #define XBOX_BYPASS_SECURITY 1 00153 #endif 00154 00155 00156 //#define USE_THREADED_SEND 00157 00158 #endif // __RAKNET_DEFINES_H
Copyright © 2007-2010 by The Shadowrun: Awakened Team. This work is licensed under the GNU Lesser General Public License 3.