mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-17 15:25:35 +00:00
aaf688cf81
- RIP llarp/iwp/* and most of llarp/link
32 lines
619 B
C++
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
|