lokinet/llarp/messages/dht_immediate.hpp
2023-08-30 12:25:47 -07:00

36 lines
674 B
C++

#pragma once
#include <llarp/dht/message.hpp>
#include "link_message.hpp"
#include <vector>
namespace llarp
{
struct DHTImmediateMessage final : public AbstractLinkMessage
{
DHTImmediateMessage() = default;
~DHTImmediateMessage() override = default;
std::vector<std::unique_ptr<dht::AbstractDHTMessage>> msgs;
std::string
bt_encode() const override;
bool
decode_key(const llarp_buffer_t& key, llarp_buffer_t* buf) override;
bool
handle_message(AbstractRouter* router) const override;
void
clear() override;
const char*
name() const override
{
return "DHTImmediate";
}
};
} // namespace llarp