2018-07-11 13:20:14 +00:00
|
|
|
#ifndef LLARP_DHT_MESSAGES_FIND_INTRO_HPP
|
|
|
|
#define LLARP_DHT_MESSAGES_FIND_INTRO_HPP
|
|
|
|
#include <llarp/dht/message.hpp>
|
|
|
|
#include <llarp/service/address.hpp>
|
|
|
|
|
|
|
|
namespace llarp
|
|
|
|
{
|
|
|
|
namespace dht
|
|
|
|
{
|
|
|
|
struct FindIntroMessage : public IMessage
|
|
|
|
{
|
2018-07-12 18:21:44 +00:00
|
|
|
uint64_t R = 0;
|
|
|
|
bool iterative = false;
|
2018-07-11 13:20:14 +00:00
|
|
|
llarp::service::Address S;
|
|
|
|
uint64_t T = 0;
|
|
|
|
|
|
|
|
~FindIntroMessage();
|
|
|
|
|
|
|
|
bool
|
|
|
|
BEncode(llarp_buffer_t* buf) const;
|
|
|
|
|
|
|
|
bool
|
|
|
|
DecodeKey(llarp_buffer_t key, llarp_buffer_t* val);
|
|
|
|
|
|
|
|
virtual bool
|
|
|
|
HandleMessage(llarp_dht_context* ctx,
|
|
|
|
std::vector< IMessage* >& replies) const;
|
|
|
|
};
|
2018-07-12 18:21:44 +00:00
|
|
|
} // namespace dht
|
|
|
|
} // namespace llarp
|
2018-07-11 13:20:14 +00:00
|
|
|
#endif
|