• Main Page
  • Related Pages
  • Modules
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

RakNetDefines.h

Go to the documentation of this file.
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 
00011 #ifndef __GET_TIME_64BIT
00012 #define __GET_TIME_64BIT 1
00013 #endif
00014 
00017 #define _RAKNET_THREADSAFE
00018 
00022 // #define __BITSTREAM_NATIVE_END
00023 
00025 #ifndef MAX_ALLOCA_STACK_ALLOCATION
00026 #define MAX_ALLOCA_STACK_ALLOCATION 1048576
00027 #endif
00028 
00029 // Use WaitForSingleObject instead of sleep.
00030 // Defining it plays nicer with other systems, and uses less CPU, but gives worse RakNet performance
00031 // Undefining it uses more CPU time, but is more responsive and faster.
00032 #ifndef _WIN32_WCE
00033 #define USE_WAIT_FOR_MULTIPLE_EVENTS
00034 #endif
00035 
00038 #ifndef _USE_RAK_MEMORY_OVERRIDE
00039 #define _USE_RAK_MEMORY_OVERRIDE 1
00040 #endif
00041 
00046 // #define OPEN_SSL_CLIENT_SUPPORT
00047 
00050 #ifndef BITSTREAM_STACK_ALLOCATION_SIZE
00051 #define BITSTREAM_STACK_ALLOCATION_SIZE 256
00052 #endif
00053 
00054 // Redefine if you want to disable or change the target for debug RAKNET_DEBUG_PRINTF
00055 #ifndef RAKNET_DEBUG_PRINTF
00056 #define RAKNET_DEBUG_PRINTF printf
00057 #endif
00058 
00059 // 16 * 4 * 8 = 512 bit. Used for InitializeSecurity()
00060 #ifndef RAKNET_RSA_FACTOR_LIMBS
00061 #define RAKNET_RSA_FACTOR_LIMBS 16
00062 #endif
00063 
00064 // Enable to support peer to peer with NetworkIDs. Disable to save memory if doing client/server only
00065 #ifndef NETWORK_ID_SUPPORTS_PEER_TO_PEER
00066 #define NETWORK_ID_SUPPORTS_PEER_TO_PEER 1
00067 #endif
00068 
00069 // O(1) instead of O(log2n) but takes more memory if less than 1/3 of the mappings are used.
00070 // Only supported if NETWORK_ID_SUPPORTS_PEER_TO_PEER is commented out
00071 // #define NETWORK_ID_USE_PTR_TABLE
00072 
00073 // Maximum number of local IP addresses supported
00074 #ifndef MAXIMUM_NUMBER_OF_INTERNAL_IDS
00075 #define MAXIMUM_NUMBER_OF_INTERNAL_IDS 10
00076 #endif
00077 
00078 #ifndef RakAssert
00079 #if defined(_XBOX) || defined(X360)
00080                     
00081 #else
00082 #if defined(_DEBUG)
00083 #define RakAssert(x) assert(x);
00084 #else
00085 #define RakAssert(x) 
00086 #endif
00087 #endif
00088 #endif
00089 
00091 #ifndef DATAGRAM_MESSAGE_ID_ARRAY_LENGTH
00092 #define DATAGRAM_MESSAGE_ID_ARRAY_LENGTH 512
00093 #endif
00094 
00096 #ifndef RESEND_BUFFER_ARRAY_LENGTH
00097 #define RESEND_BUFFER_ARRAY_LENGTH 512
00098 #define RESEND_BUFFER_ARRAY_MASK 511
00099 #endif
00100 
00102 // #define _LINK_DL_MALLOC
00103 
00104 #ifndef GET_TIME_SPIKE_LIMIT
00105 
00106 
00107 
00108 
00109 #define GET_TIME_SPIKE_LIMIT 0
00110 #endif
00111 
00112 #endif // __RAKNET_DEFINES_H

Generated on Thu Sep 30 2010 01:27:26 for RakNet by  doxygen 1.7.1