diff --git a/raknet/NetworkTypes.h b/raknet/NetworkTypes.h index b69cb0e..44952f6 100644 --- a/raknet/NetworkTypes.h +++ b/raknet/NetworkTypes.h @@ -3,6 +3,11 @@ #ifndef __NETWORK_TYPES_H #define __NETWORK_TYPES_H +#include "Export.h" + +/// Given a number of bits, return how many bytes are needed to represent that. +#define BITS_TO_BYTES(x) (((x)+7)>>3) + // Define __GET_TIME_64BIT if you want to use large types for GetTime (takes more bandwidth when you transmit time though!) // You would want to do this if your system is going to run long enough to overflow the millisecond counter (over a month) #ifdef __GET_TIME_64BIT @@ -28,6 +33,10 @@ struct RAK_DLL_EXPORT PlayerID /// This represents a user message from another system. struct Packet { + /// The length of the data in bytes + /// \deprecated You should use bitSize. + unsigned int length; + /// The data from the sender unsigned char* data; }; diff --git a/raknet/RakClient.cpp b/raknet/RakClient.cpp index 9ded48a..79db692 100644 --- a/raknet/RakClient.cpp +++ b/raknet/RakClient.cpp @@ -283,3 +283,9 @@ void RakClient::vftable_D8() { // TODO: RakClient::vftable_D8() (saco 10034A20) (server L: 8069550) (bot W: 403260 L: 806CF0C) } + +void RakClient::vftable_DC() +{ + // TODO: RakClient::vftable_DC() (bot L: 0806CF1A) +} + diff --git a/raknet/SocketLayer.cpp b/raknet/SocketLayer.cpp new file mode 100644 index 0000000..e69de29 diff --git a/raknet/SocketLayer.h b/raknet/SocketLayer.h new file mode 100644 index 0000000..0601d21 --- /dev/null +++ b/raknet/SocketLayer.h @@ -0,0 +1,12 @@ + +#ifndef __SOCKET_LAYER_H +#define __SOCKET_LAYER_H + +class SocketLayer +{ + +public: +}; + +#endif + diff --git a/raknet/Types.h b/raknet/Types.h new file mode 100644 index 0000000..73a4e8f --- /dev/null +++ b/raknet/Types.h @@ -0,0 +1,8 @@ + +#ifndef TYPES_H +#define TYPES_H + +// Rotation +#define ROL32(n, r) ( ((n) << (r)) | ((n) >> (32 - (r))) ) /* only works for u32 */ + +#endif // TYPES_H