working commit

This commit is contained in:
Олег Бородин
2026-04-29 18:49:19 +02:00
parent 47542499fc
commit bd4df1e3da
19 changed files with 250 additions and 283 deletions
+17
View File
@@ -0,0 +1,17 @@
#include <string>
constexpr uint32_t MAGIC = 0xABBA;
constexpr int rpcHeaderSize = 8;
class MessageHeader {
private:
uint32_t pSize = 0;
public:
MessageHeader(const uint32_t pSize);
MessageHeader(void);
std::string Encode(void);
std::expected<void, std::string> Decode(const std::string buffer);
uint32_t PacketSize(void);
};