mirror of https://github.com/oxen-io/lokinet
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
619 B
C++
30 lines
619 B
C++
6 years ago
|
#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
|
||
|
{
|
||
|
uint64_t R = 0;
|
||
|
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;
|
||
|
};
|
||
|
}
|
||
|
}
|
||
|
#endif
|