lokinet/llarp/routing/path_dht_message.hpp
dr7ana aaf688cf81 Deleted a lot
- RIP llarp/iwp/* and most of llarp/link
2023-09-15 14:15:03 -07:00

32 lines
619 B
C++

#pragma once
#include <llarp/dht/message.hpp>
#include "message.hpp"
#include <vector>
namespace llarp::routing
{
struct PathDHTMessage final : public AbstractRoutingMessage
{
std::vector<std::unique_ptr<dht::AbstractDHTMessage>> dht_msgs;
~PathDHTMessage() override = default;
bool
decode_key(const llarp_buffer_t& key, llarp_buffer_t* val) override;
std::string
bt_encode() const override;
bool
handle_message(AbstractRoutingMessageHandler* h, Router* r) const override;
void
clear() override
{
dht_msgs.clear();
}
};
} // namespace llarp::routing