tooling::HiveContext
HiveContext is a subclass of llarp::Context which allows RouterHive to perform custom behavior which might be undesirable in production code.
#include <hive_context.hpp>
Inherits from llarp::Context
Public Functions
| Name | |
|---|---|
| HiveContext(RouterHive * hive) | |
| std::shared_ptr< llarp::AbstractRouter > | makeRouter(const llarp::EventLoop_ptr & loop) override |
| HiveRouter * | getRouterAsHiveRouter() Get this context's router as a HiveRouter. |
Protected Attributes
| Name | |
|---|---|
| RouterHive * | m_hive |
Public Functions Documentation
function HiveContext
HiveContext(
RouterHive * hive
)
function makeRouter
std::shared_ptr< llarp::AbstractRouter > makeRouter(
const llarp::EventLoop_ptr & loop
) override
function getRouterAsHiveRouter
HiveRouter * getRouterAsHiveRouter()
Get this context's router as a HiveRouter.
Returns nullptr if there is no router or throws an exception if the router is somehow not an instance of HiveRouter.
Protected Attributes Documentation
variable m_hive
RouterHive * m_hive = nullptr;
Updated on 2026-01-10 at 22:49:45 +0000