This repository has been archived on 2019-06-21. You can view files and clone it, but cannot push or open issues or pull requests.
PixelHub/PixelHub-Client/src/Messages/HandshakeResponseMessage.cpp

17 lines
457 B
C++

#pragma once
#include "HandshakeResponseMessage.h"
#include "PixelMessage.h"
HandshakeResponseMessage::HandshakeResponseMessage() : PixelMessage()
{
}
HandshakeResponseMessage::HandshakeResponseMessage(byte* rawMessage) : PixelMessage(rawMessage)
{
// The position of the start of the message body
void* messageBodyStart = static_cast<void*>(rawMessage + PixelMessage::MESSAGE_HEADER_LENGTH);
Id = *(static_cast<unsigned int*>(messageBodyStart));
}