2021-03-09 22:24:35 +00:00
|
|
|
#pragma once
|
2019-01-11 00:12:43 +00:00
|
|
|
|
2021-03-09 22:24:35 +00:00
|
|
|
#include <llarp/dht/message.hpp>
|
|
|
|
#include "link_message.hpp"
|
2018-12-12 01:32:10 +00:00
|
|
|
|
2018-06-01 14:08:54 +00:00
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
namespace llarp
|
|
|
|
{
|
2023-08-29 14:26:59 +00:00
|
|
|
struct DHTImmediateMessage final : public AbstractLinkMessage
|
2018-06-01 14:08:54 +00:00
|
|
|
{
|
2020-04-07 18:38:56 +00:00
|
|
|
DHTImmediateMessage() = default;
|
2019-07-30 23:42:13 +00:00
|
|
|
~DHTImmediateMessage() override = default;
|
2018-06-01 14:08:54 +00:00
|
|
|
|
2023-08-29 14:26:59 +00:00
|
|
|
std::vector<std::unique_ptr<dht::AbstractDHTMessage>> msgs;
|
2018-06-01 14:08:54 +00:00
|
|
|
|
2023-08-29 14:26:59 +00:00
|
|
|
std::string
|
|
|
|
bt_encode() const override;
|
2018-06-01 14:08:54 +00:00
|
|
|
|
|
|
|
bool
|
2023-08-29 14:26:59 +00:00
|
|
|
decode_key(const llarp_buffer_t& key, llarp_buffer_t* buf) override;
|
2018-06-01 14:08:54 +00:00
|
|
|
|
|
|
|
bool
|
2023-08-29 14:26:59 +00:00
|
|
|
handle_message(AbstractRouter* router) const override;
|
2018-12-20 16:49:05 +00:00
|
|
|
|
|
|
|
void
|
2023-08-29 14:26:59 +00:00
|
|
|
clear() override;
|
2019-03-26 20:04:41 +00:00
|
|
|
|
|
|
|
const char*
|
2023-08-29 14:26:59 +00:00
|
|
|
name() const override
|
2019-03-26 20:04:41 +00:00
|
|
|
{
|
|
|
|
return "DHTImmediate";
|
|
|
|
}
|
2018-06-01 14:08:54 +00:00
|
|
|
};
|
2018-06-29 14:25:09 +00:00
|
|
|
} // namespace llarp
|