21 lines
633 B
C++
21 lines
633 B
C++
#pragma once
|
|
|
|
#include <sp/default/DefaultPacket.h>
|
|
#include <sp/protocol/Field.h>
|
|
#include <sp/protocol/MessageBase.h>
|
|
|
|
enum PacketId {
|
|
KeepAlive = 0,
|
|
};
|
|
|
|
using KeepAliveFields = std::tuple<sp::Field<std::uint64_t>>;
|
|
|
|
class KeepAlivePacket : public sp::MessageBase<sp::PacketMessage,
|
|
sp::option::StaticNumIdImpl<KeepAlive>, // provide idImpl() if needed
|
|
sp::option::DispatchImpl<KeepAlivePacket>, // provide dispatchImpl() if needed
|
|
sp::option::FieldsImpl<KeepAliveFields> // provide access to fields
|
|
> {};
|
|
|
|
using AllPackets = std::tuple<KeepAlivePacket>;
|
|
|
|
#include <sp/default/DefaultPacketHandler.h> |