Changed types from fixed width types in stdint to language primitive types guaranteed to be at least as big.

This commit is contained in:
Jason Watkins
2015-04-16 10:13:18 -07:00
parent 4fdc6939c8
commit 1a3f658774
8 changed files with 72 additions and 74 deletions

View File

@@ -27,13 +27,13 @@ namespace XPC
static Message ReadFrom(UDPSocket& sock);
/// Gets the message header in binary form.
std::uint32_t GetMagicNumber();
unsigned long GetMagicNumber();
/// Gets the message header.
std::string GetHead();
/// Gets the buffer underlying the message.
const std::uint8_t* GetBuffer();
const unsigned char* GetBuffer();
/// Gets the size of the message in bytes.
std::size_t GetSize();
@@ -48,7 +48,7 @@ namespace XPC
Message();
static const std::size_t bufferSize = 4096;
std::uint8_t buffer[bufferSize];
unsigned char buffer[bufferSize];
std::size_t size;
struct sockaddr source;
};