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.
lokinet/llarp/dht/publishservicejob.hpp

39 lines
879 B
C++

#ifndef LLARP_DHT_PUBLISHSERVICEJOB
#define LLARP_DHT_PUBLISHSERVICEJOB
#include <dht/tx.hpp>
#include <dht/txowner.hpp>
#include <service/address.hpp>
#include <service/intro_set.hpp>
#include <set>
namespace llarp
{
namespace dht
{
struct PublishServiceJob : public TX< TXOwner, service::EncryptedIntroSet >
{
bool relayed;
uint64_t relayOrder;
service::EncryptedIntroSet introset;
PublishServiceJob(const TXOwner &asker,
const service::EncryptedIntroSet &introset,
4 years ago
AbstractContext *ctx, bool relayed,
uint64_t relayOrder);
bool
Validate(const service::EncryptedIntroSet &introset) const override;
void
Start(const TXOwner &peer) override;
void
SendReply() override;
};
} // namespace dht
} // namespace llarp
#endif