started some things
This commit is contained in:
@@ -0,0 +1,2 @@
|
|||||||
|
[hostname]
|
||||||
|
base_path="https://tracker.example.com"
|
||||||
|
|||||||
8
src/shared-utils/objects.cpp
Normal file
8
src/shared-utils/objects.cpp
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
#include "objects.hpp"
|
||||||
|
|
||||||
|
namespace serializable {
|
||||||
|
template <typename S>
|
||||||
|
void serialize(S &s, HandshakeConnection &object){
|
||||||
|
s.value2b(object.payload);
|
||||||
|
}
|
||||||
|
}
|
||||||
13
src/shared-utils/objects.hpp
Normal file
13
src/shared-utils/objects.hpp
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
#pragma once
|
||||||
|
#include <bitsery/bitsery.h>
|
||||||
|
#include <cstdint>
|
||||||
|
|
||||||
|
namespace serializable{
|
||||||
|
|
||||||
|
struct HandshakeConnection {
|
||||||
|
std::uint16_t payload;
|
||||||
|
};
|
||||||
|
|
||||||
|
template<typename S>
|
||||||
|
void serialize(S& s, HandshakeConnection& object);
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user