llarp/tooling/hive_context.hpp
Namespaces
| Name |
|---|
| tooling |
Classes
| Name | |
|---|---|
| struct | tooling::HiveContext HiveContext is a subclass of llarp::Context which allows RouterHive to perform custom behavior which might be undesirable in production code. |
Source code
#pragma once
#include <llarp.hpp>
#include "hive_router.hpp"
namespace tooling
{
struct HiveContext : public llarp::Context
{
HiveContext(RouterHive* hive);
std::shared_ptr<llarp::AbstractRouter>
makeRouter(const llarp::EventLoop_ptr& loop) override;
HiveRouter*
getRouterAsHiveRouter();
protected:
RouterHive* m_hive = nullptr;
};
} // namespace tooling
Updated on 2026-01-10 at 22:49:45 +0000