mirror of https://github.com/oxen-io/lokinet
dht pub intro message router event thiny doo
parent
22ed47ca12
commit
e7689b40a7
@ -0,0 +1,19 @@
|
||||
#include "dht_event.hpp"
|
||||
|
||||
|
||||
namespace tooling
|
||||
{
|
||||
PubIntroReceivedEvent::PubIntroReceivedEvent(const llarp::RouterID & ourRouter, const llarp::dht::Key_t & from, const llarp::dht::Key_t & location, uint64_t txid, uint64_t relayOrder) :
|
||||
RouterEvent(ourRouter, false),
|
||||
From(from),
|
||||
IntrosetLocation(location),
|
||||
RelayOrder(relayOrder),
|
||||
TxID(txid)
|
||||
{}
|
||||
|
||||
std::string PubIntroReceivedEvent::ToString() const
|
||||
{
|
||||
return "DhtPubIntroReceievedEvent on " + routerID.ShortString() + " from " + From.ToHex() + " location=" + IntrosetLocation.ToHex() + " order=" + std::to_string(RelayOrder) + " txid=" + std::to_string(TxID);
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,29 @@
|
||||
#pragma once
|
||||
|
||||
#include "router_event.hpp"
|
||||
#include "dht/key.hpp"
|
||||
|
||||
namespace tooling
|
||||
{
|
||||
struct FindIntroReceievedEvent : public RouterEvent
|
||||
{
|
||||
FindIntroReceievedEvent(const llarp::RouterID & ourRouter, const llarp::dht::Key_t & from, const llarp::dht::Key_t & location, uint64_t txid);
|
||||
|
||||
llarp::dht::Key_t From;
|
||||
llarp::dht::Key_t IntrosetLocation;
|
||||
uint64_t TxID;
|
||||
|
||||
std::string ToString() const override;
|
||||
};
|
||||
|
||||
struct PubIntroReceivedEvent : public RouterEvent
|
||||
{
|
||||
PubIntroReceivedEvent(const llarp::RouterID & ourRouter, const llarp::dht::Key_t & from, const llarp::dht::Key_t & location, uint64_t txid, uint64_t relayOrder);
|
||||
|
||||
llarp::dht::Key_t From;
|
||||
llarp::dht::Key_t IntrosetLocation;
|
||||
uint64_t RelayOrder;
|
||||
uint64_t TxID;
|
||||
std::string ToString() const override;
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue