lokinet/llarp/messages/dht_immediate.hpp

39 lines
745 B
C++
Raw Normal View History

2018-06-01 14:08:54 +00:00
#ifndef LLARP_MESSAGES_DHT_IMMEDIATE_HPP
#define LLARP_MESSAGES_DHT_IMMEDIATE_HPP
#include <dht/message.hpp>
#include <messages/link_message.hpp>
2018-12-12 01:32:10 +00:00
2018-06-01 14:08:54 +00:00
#include <vector>
namespace llarp
{
2019-06-15 14:55:13 +00:00
struct DHTImmediateMessage final : public ILinkMessage
2018-06-01 14:08:54 +00:00
{
DHTImmediateMessage() = default;
2019-07-30 23:42:13 +00:00
~DHTImmediateMessage() override = default;
2018-06-01 14:08:54 +00:00
std::vector<std::unique_ptr<dht::IMessage>> msgs;
2018-06-01 14:08:54 +00:00
bool
2019-02-05 00:41:33 +00:00
DecodeKey(const llarp_buffer_t& key, llarp_buffer_t* buf) override;
2018-06-01 14:08:54 +00:00
bool
2018-12-23 13:29:11 +00:00
BEncode(llarp_buffer_t* buf) const override;
2018-06-01 14:08:54 +00:00
bool
HandleMessage(AbstractRouter* router) const override;
2018-12-20 16:49:05 +00:00
void
Clear() override;
2019-03-26 20:04:41 +00:00
const char*
Name() const override
{
return "DHTImmediate";
}
2018-06-01 14:08:54 +00:00
};
} // namespace llarp
2018-06-01 14:08:54 +00:00
#endif