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
29 lines
588 B
C++
29 lines
588 B
C++
#ifndef LLARP_DHT_LOCALSERVICEADDRESSLOOKUP
|
|
#define LLARP_DHT_LOCALSERVICEADDRESSLOOKUP
|
|
|
|
#include "serviceaddresslookup.hpp"
|
|
|
|
#include <llarp/path/path_types.hpp>
|
|
|
|
namespace llarp::dht
|
|
{
|
|
struct LocalServiceAddressLookup : public ServiceAddressLookup
|
|
{
|
|
PathID_t localPath;
|
|
|
|
LocalServiceAddressLookup(
|
|
const PathID_t& pathid,
|
|
uint64_t txid,
|
|
uint64_t relayOrder,
|
|
const Key_t& addr,
|
|
AbstractDHTMessageHandler* ctx,
|
|
[[maybe_unused]] const Key_t& askpeer);
|
|
|
|
void
|
|
SendReply() override;
|
|
};
|
|
|
|
} // namespace llarp::dht
|
|
|
|
#endif
|