mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-09 13:10:25 +00:00
34 lines
743 B
C++
34 lines
743 B
C++
|
#ifndef LLARP_DHT_MESSAGES_PUB_INTRO_HPP
|
||
|
#define LLARP_DHT_MESSAGES_PUB_INTRO_HPP
|
||
|
#include <llarp/dht/message.hpp>
|
||
|
#include <llarp/service/IntroSet.hpp>
|
||
|
namespace llarp
|
||
|
{
|
||
|
namespace dht
|
||
|
{
|
||
|
struct PublishIntroMessage : public IMessage
|
||
|
{
|
||
|
llarp::service::IntroSet I;
|
||
|
uint64_t R = 0;
|
||
|
uint64_t S = 0;
|
||
|
uint64_t txID = 0;
|
||
|
bool hasS = false;
|
||
|
PublishIntroMessage() : IMessage({})
|
||
|
{
|
||
|
}
|
||
|
|
||
|
~PublishIntroMessage();
|
||
|
|
||
|
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
|