22 lines
436 B
C++
22 lines
436 B
C++
#pragma once
|
|
|
|
#include <sp/default/DefaultPacket.h>
|
|
#include <sp/protocol/Field.h>
|
|
#include <sp/protocol/MessageBase.h>
|
|
|
|
enum class KeepAliveFieldsE {
|
|
KeepAliveId = 0,
|
|
};
|
|
|
|
using KeepAliveFields = std::tuple<
|
|
std::uint64_t //<- KeepAliveId
|
|
>;
|
|
|
|
DeclarePacket(KeepAlive){
|
|
public:
|
|
PacketConstructor(KeepAlive)
|
|
|
|
std::uint64_t GetKeepAliveId() const {
|
|
return GetField<KeepAliveFieldsE, KeepAliveFieldsE::KeepAliveId>();
|
|
}
|
|
}; |