2018-06-01 14:08:54 +00:00
|
|
|
#ifndef LLARP_MESSAGES_DHT_IMMEDIATE_HPP
|
|
|
|
#define LLARP_MESSAGES_DHT_IMMEDIATE_HPP
|
2019-01-11 00:12:43 +00:00
|
|
|
|
|
|
|
#include <dht/message.hpp>
|
2019-01-14 21:46:07 +00:00
|
|
|
#include <messages/link_message.hpp>
|
2018-12-12 01:32:10 +00:00
|
|
|
|
2018-06-01 14:08:54 +00:00
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
namespace llarp
|
|
|
|
{
|
|
|
|
struct DHTImmeidateMessage : public ILinkMessage
|
|
|
|
{
|
2018-09-02 18:25:42 +00:00
|
|
|
DHTImmeidateMessage() : ILinkMessage()
|
2018-06-01 14:08:54 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
~DHTImmeidateMessage();
|
|
|
|
|
2018-09-02 18:25:42 +00:00
|
|
|
std::vector< std::unique_ptr< llarp::dht::IMessage > > msgs;
|
2018-06-01 14:08:54 +00:00
|
|
|
|
|
|
|
bool
|
2018-12-23 13:29:11 +00:00
|
|
|
DecodeKey(llarp_buffer_t key, llarp_buffer_t* buf) override;
|
2018-06-01 14:08:54 +00:00
|
|
|
|
|
|
|
bool
|
2018-12-23 13:29:11 +00:00
|
|
|
BEncode(llarp_buffer_t* buf) const override;
|
2018-06-01 14:08:54 +00:00
|
|
|
|
|
|
|
bool
|
2018-12-23 13:29:11 +00:00
|
|
|
HandleMessage(llarp::Router* router) const override;
|
2018-12-20 16:49:05 +00:00
|
|
|
|
|
|
|
void
|
|
|
|
Clear() override;
|
2018-06-01 14:08:54 +00:00
|
|
|
};
|
2018-06-29 14:25:09 +00:00
|
|
|
} // namespace llarp
|
2018-06-01 14:08:54 +00:00
|
|
|
|
|
|
|
#endif
|