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

31 lines
575 B
C++

#pragma once
#include "message.hpp"
namespace llarp::routing
{
struct PathLatencyMessage final : public AbstractRoutingMessage
{
uint64_t sent_time = 0;
uint64_t latency = 0;
PathLatencyMessage();
std::string
bt_encode() const override;
bool
decode_key(const llarp_buffer_t& key, llarp_buffer_t* val) override;
void
clear() override
{
sent_time = 0;
latency = 0;
version = 0;
}
bool
handle_message(AbstractRoutingMessageHandler* h, Router* r) const override;
};
} // namespace llarp::routing