mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-10-31 09:20:21 +00:00
46 lines
1018 B
C++
46 lines
1018 B
C++
#include "router_event.hpp"
|
|
|
|
#include <path/path_types.hpp>
|
|
|
|
namespace tooling
|
|
{
|
|
|
|
struct PathAttemptEvent : public RouterEvent
|
|
{
|
|
PathAttemptEvent(const llarp::RouterID& routerID, std::shared_ptr<const llarp::path::Path> path);
|
|
|
|
std::string ToString() const override;
|
|
|
|
std::vector<llarp::path::PathHopConfig> hops;
|
|
|
|
llarp::PathID_t pathid;
|
|
};
|
|
|
|
struct PathRequestReceivedEvent : public RouterEvent
|
|
{
|
|
PathRequestReceivedEvent(const llarp::RouterID& routerID, std::shared_ptr<const llarp::path::TransitHop> hop);
|
|
|
|
std::string ToString() const override;
|
|
|
|
llarp::RouterID prevHop;
|
|
llarp::RouterID nextHop;
|
|
|
|
llarp::PathID_t txid;
|
|
llarp::PathID_t rxid;
|
|
|
|
bool isEndpoint = false;
|
|
};
|
|
|
|
struct PathStatusReceivedEvent : public RouterEvent
|
|
{
|
|
PathStatusReceivedEvent(const llarp::RouterID& routerID, const llarp::PathID_t rxid, uint64_t status);
|
|
|
|
std::string ToString() const override;
|
|
|
|
llarp::PathID_t rxid;
|
|
|
|
uint64_t status;
|
|
};
|
|
|
|
} // namespace tooling
|