working message factory

This commit is contained in:
2025-02-06 22:16:07 +01:00
parent f5430f3d0f
commit bbafae2588
5 changed files with 105 additions and 4 deletions

View File

@@ -1,11 +1,15 @@
#pragma once
enum PacketId {
KeepAlive
KeepAlive = 0,
Disconnect,
};
#include <examples/KeepAlivePacket.h>
#include <examples/DisconnectPacket.h>
using AllPackets = std::tuple<KeepAlivePacket>;
// they must be in the same order !
using AllPackets = std::tuple<KeepAlivePacket, DisconnectPacket>;
#include <sp/default/DefaultPacketHandler.h>
#include <sp/default/DefaultPacketHandler.h>
#include <sp/default/DefaultPacketFactory.h>