mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-19 09:25:28 +00:00
511c20cdb6
- `::handle_message` is transposed; Rather than the message calling the method and taking a reference to the router, the router should have a handle_message method and take a reference to the message - `::EndcodeBuffer` takes a string reference, to which the result of `::bt_encode()` is assigned
28 lines
551 B
C++
28 lines
551 B
C++
#ifndef LLARP_DHT_LOCALROUTERLOOKUP
|
|
#define LLARP_DHT_LOCALROUTERLOOKUP
|
|
|
|
#include "recursiverouterlookup.hpp"
|
|
|
|
#include <llarp/path/path_types.hpp>
|
|
#include <llarp/router_contact.hpp>
|
|
#include <llarp/router_id.hpp>
|
|
|
|
namespace llarp::dht
|
|
{
|
|
struct LocalRouterLookup : public RecursiveRouterLookup
|
|
{
|
|
PathID_t localPath;
|
|
|
|
LocalRouterLookup(
|
|
const PathID_t& path,
|
|
uint64_t txid,
|
|
const RouterID& target,
|
|
AbstractDHTMessageHandler* ctx);
|
|
|
|
void
|
|
SendReply() override;
|
|
};
|
|
} // namespace llarp::dht
|
|
|
|
#endif
|