Preprocessor directives

In RakNetDefines.h: Recompile with these set to enable or disable blocks of code. __GET_TIME_64BIT: Use 64 bits for the structure RakNetTime. Doubles bandwidth usage to tranmit this structure, but prevents time overflow after a month. On by default. _RAKNET_THREADSAFE: Enable to make RakNet safe to call from multiple threads. It is OK to normally have multiple threads running, but not to call non-threadsafe functions from multiple threads. Enabling makes those calls significantly slower. Off by default. __BITSTREAM_NATIVE_END: Don't use endian swapping. Only comment out if you plan to connect between systems of different endianness. Off by default (use endian swapping). Endian swapping only occurs if you use the BitSteam class. MAX_ALLOCA_STACK_ALLOCATION: Maximum amount to allocate on the stack using _alloca(). If you crash when _alloca() is called (especially for RakPeer::RPC (obsolete, do not use)), decrease this value. USE_WAIT_FOR_MULTIPLE_EVENTS: On Windows, use the event timer system for when network messages arrive internally. When off, the reported (but not actual) CPU usage in Task Manager approaches 100%, but the internal update thread runs very consistently. When on, the reported CPU usage is very low. Whether the update thread runs consistently seems to depend on the individual computer, but generally runs acceptably on Windows XP or newer _USE_RAK_MEMORY_OVERRIDE: Memory allocations will call into functinos found in RakMemoryOverride.h. On by default. _USE_RAKNET_FLOW_CONTROL: Use RakNet's built in congestion control. Fast, but not as good as UDT. Comment out to use UDT instead. On by default, as UDT has bugs (do not use for now) _ENABLE_RAKNET_FLOW_CONTROL: If _USE_RAKNET_FLOW_CONTROL is enabled, but this is commented out, then no flow control is used at all. BITSTREAM_STACK_ALLOCATION_SIZE: The bitstream class uses the stack instead of the heap until this many bytes are written RAKNET_DEBUG_PRINTF: Redefine what RakNet uses for printf (for debugging) RAKNET_RSA_FACTOR_LIMBS: Controls how many bits are used for secure connections NETWORK_ID_SUPPORTS_PEER_TO_PEER: The network ID class only has to write two bytes for client/server. For peer to peer, it has to write the GUID (6 bytes), plus the other two bytes. On by default. NETWORK_ID_USE_PTR_TABLE: If NETWORK_ID_SUPPORTS_PEER_TO_PEER is commented out, do lookups using a pointer table instead of an AVL balanced binary tree (Faster but uses more memory). MAXIMUM_NUMBER_OF_INTERNAL_IDS: How many IP addresses to store, when a system has more than one IP address.
Defining __BITSTREAM_NATIVE_END in .net 2003 (You could also just modify RakNetDefines.h)

See Also

Index